I created new task for creating swap file and mount it. https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/tasks/swap.ym... 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
On Mon, Feb 24, 2020 at 09:27:29PM +0100, Miroslav Suchý wrote:
I created new task for creating swap file and mount it. https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/tasks/swap.ym... 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
Cool. That could come in handy.
Thanks!
kevin
infrastructure@lists.fedoraproject.org