diff --git a/tasks/main.yml b/tasks/main.yml index 58f7813..2c780b1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: