new task for creating swap file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux