I created new task for creating swap file and mount it.
https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/tasks/swap.yml
It is handy in AWS where flavors does not have swap disk.
You can use it like:
tasks:
- import_tasks: "{{ tasks_path }}/swap.yml"
when:
- datacenter == 'aws'
- swap_file_size_mb is defined
It uses two variables (values are just example):
swap_file_size_mb: 2048
swap_file_path: /swap
--
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
_______________________________________________
infrastructure mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]