https://github.com/aboutbits/ansible-swap
Ansible - Swap Role
https://github.com/aboutbits/ansible-swap
ansible ansible-role swap
Last synced: 12 months ago
JSON representation
Ansible - Swap Role
- Host: GitHub
- URL: https://github.com/aboutbits/ansible-swap
- Owner: aboutbits
- Created: 2020-04-24T08:10:51.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T06:23:09.000Z (over 2 years ago)
- Last Synced: 2025-01-08T05:51:33.393Z (about 1 year ago)
- Topics: ansible, ansible-role, swap
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Ansible Swap Role
=================
Swap creation role.
## Role Variables
- `swap_size`: The size of the swap file
## Example Playbook
```yaml
- hosts: all
tasks:
- ansible.builtin.include_role:
name: ansible-swap
vars:
swap_size: '1G'
```
## Versioning
In order to have a verioning in place and working, create leightweight tags that point to the appropriate minor release versions.
Creating a new minor release:
```bash
git tag v2
git push --tags
```
Replacing an already existing minor release:
```bash
git tag -d v2
git push origin :refs/tags/v2
git tag v2
git push --tags
```