diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml index e2bedc16..e5d8286e 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml @@ -69,7 +69,7 @@ register: agent_auth_output notify: Windows | Restart Wazuh Agent when: - - wazuh_agent_authd.enable == true + - wazuh_agent_authd.enable | bool - not check_windows_key.stat.exists or check_windows_key.stat.size == 0 - wazuh_agent_authd.registration_address is not none tags: