ansible.posix/tests/integration/targets/mount/tasks/main.yml
quidame eafd8f8935 feature: mount - implement swapon/swapoff (#106)
* Declare functions swapon() & swapoff(), is_swap() & reswap().
* Apply swapon/swapoff for states mounted, unmounted, remounted and
  absent.
* Override default opts and boot when fstype=swap.
* Do not honor 'fstab' when fstype=swap (fail instead).
* Also fail when fstype=swap and 'path' is not 'none' ('-' for Solaris).
* Update module documentation accordingly.
+ Replace all platform.system() calls by a variable.

refactor integration tests

* Improve readability/understanding of what is tested, and what OS is
  targeted.
* Move 'swap' related test cases into dedicated file (swap.yml).
* Add new test cases about swap enabling/disabling.
* Extend tests to FreeBSD when possible.
2021-03-28 01:21:08 +01:00

29 lines
827 B
YAML

---
- name: Include tasks to validate bind mount management (Linux, FreeBSD)
include_tasks: bind_mount.yml
when:
- ansible_system in ['Linux', 'FreeBSD']
- name: Include tasks to validate optional fields management in fstab (Linux)
include_tasks: fstab_last_fields.yml
when:
- ansible_system in ['Linux']
- name: Include tasks to validate state=remounted behaviour (Linux)
include_tasks: remount.yml
when:
- ansible_system in ['Linux']
- name: Include tasks to validate multi swap management in fstab (Linux)
include_tasks: fstab_multi_swap.yml
when:
- ansible_system in ['Linux', 'FreeBSD']
- name: Include tasks to validate enabling/disabling a swapfile (Linux, FreeBSD)
include_tasks: "swapfile_{{ ansible_system | lower }}.yml"
when:
- ansible_system in ['Linux', 'FreeBSD']