refactor ♻️: Add changed_when: true to tasks for better task tracking
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
ansible-lint / Ansible Lint (pull_request) Successful in 10s

This refactoring adds the 'changed_when' attribute to Ansible tasks, enhancing their ability to report changes accurately and improving overall task tracking.
This commit is contained in:
2025-12-26 16:30:29 +01:00
parent 0e16e350de
commit 00a6fcc966

View File

@@ -71,6 +71,7 @@
when:
- wol_mode not in item.1.stdout
- wol_mode in item.2.stdout
changed_when: true
- name: "Disable Wake-on-LAN"
ansible.builtin.command: "ethtool -s {{ item.0 }} wol {{ wol_mode }}"
@@ -80,6 +81,7 @@
when:
- wol_mode == 'd'
- wol_mode not in item.1.stdout
changed_when: true
- name: Deploy wol systemd template
ansible.builtin.template: