refactor ♻️: Convert string to boolean for condition and changed_when
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 27s

Refactored the code to convert string values to boolean for conditional checks and update the `changed_when` attribute accordingly.
This commit is contained in:
2026-02-14 08:39:57 +01:00
parent 75693ebf2e
commit cbd2f38da0

View File

@@ -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: