refactor ♻️: Convert string to boolean for condition and changed_when #11
@@ -16,7 +16,8 @@
|
||||
when:
|
||||
- proxmox_disable_swap
|
||||
- ansible_memtotal_mb >= proxmox_min_ram_mb_for_no_swap
|
||||
- active_swaps.stdout != ""
|
||||
- active_swaps.stdout | bool
|
||||
changed_when: active_swaps.stdout | bool
|
||||
|
||||
- name: swap | Comment swap entries in fstab
|
||||
ansible.builtin.replace:
|
||||
|
||||
Reference in New Issue
Block a user