{"id":20163505,"url":"https://github.com/sjinks/ansible-role-swapfile","last_synced_at":"2026-05-15T05:08:32.908Z","repository":{"id":77874151,"uuid":"107822839","full_name":"sjinks/ansible-role-swapfile","owner":"sjinks","description":"Ansible role to configure a swap file","archived":false,"fork":false,"pushed_at":"2018-09-22T08:18:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T03:12:18.047Z","etag":null,"topics":["ansible","ansible-role","swap","swapfile"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjinks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]}},"created_at":"2017-10-21T23:20:34.000Z","updated_at":"2018-09-22T08:18:23.000Z","dependencies_parsed_at":"2023-02-28T07:46:08.786Z","dependency_job_id":null,"html_url":"https://github.com/sjinks/ansible-role-swapfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjinks/ansible-role-swapfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fansible-role-swapfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fansible-role-swapfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fansible-role-swapfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fansible-role-swapfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/ansible-role-swapfile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fansible-role-swapfile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33054486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","swap","swapfile"],"created_at":"2024-11-14T00:29:53.422Z","updated_at":"2026-05-15T05:08:32.885Z","avatar_url":"https://github.com/sjinks.png","language":null,"funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# Ansible Role: Swapfile\n\n[![Build Status](https://travis-ci.org/sjinks/ansible-role-swapfile.svg?branch=master)](https://travis-ci.org/sjinks/ansible-role-swapfile)\n\nThis role configures a swapfile.\n\n## Requirements\n\nSufficient disk space to hold the swap file.\n\n## Role Variables\n\n  * `swapfile_path`: full path to the swap file to create (e.g.: `/swapfile`); when empty, no swap file will be created\n  * `swapfile_size_mib`: the size of the swap file (MiB); when negative or zero, no swap file will be created\n  * `swapfile_use_dd`: `False` (default) if use `fallocate` to create the file, `True` to use `dd`\n  * `swapfile_swappiness`: if not `False`, set the value of `vm.swappiness` to this value\n  * `swapfile_vfs_cache_pressure`: if not `False`, set the value of `vm.vfs_cache_pressure` to this value\n\n## Dependencies\n\nNone.\n\n## Usage\n\n```\n- hosts: all\n  roles:\n    - sjinks.swapfile\n```\n\nor\n\n```\n- hosts: all\n  roles:\n    - { role: sjinks.swapfile, swapfile_location: /swap, swafile_size_mib: 1024 }\n```\n\n## License\n\nMIT, see LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fansible-role-swapfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Fansible-role-swapfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fansible-role-swapfile/lists"}