fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-18 11:29:03 +03:00
parent d27ba46d5b
commit ef524d7006
6 changed files with 35 additions and 35 deletions

View File

@@ -2,17 +2,17 @@
- name: "Manage swap file entry in fstab"
ansible.posix.mount:
name: none
src: "{{ swap_file_path }}"
src: "{{ swapfile_path }}"
fstype: swap
opts: sw
state: "{{ swap_file_state }}"
state: "{{ swapfile_state }}"
- name: "Include disable swap tasks"
when: swap_file_state == 'absent'
when: swapfile_state == 'absent'
ansible.builtin.include_tasks: disable.yml
- name: "Include enable swap tasks"
when: swap_file_state == 'present'
when: swapfile_state == 'present'
ansible.builtin.include_tasks: enable.yml