From d6f3d91a465efcd802bf757973422eacbb515a7e Mon Sep 17 00:00:00 2001 From: Hadrien Date: Fri, 26 Jun 2020 18:56:01 +0200 Subject: [PATCH] update check on windows wazuh_agent_authd.agent_name's definition --- roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml index 38b4e8ac..e21baaaa 100644 --- a/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml +++ b/roles/wazuh/ansible-wazuh-agent/tasks/Windows.yml @@ -64,7 +64,7 @@ {{ wazuh_agent_win_auth_path }} -m {{ wazuh_agent_authd.registration_address }} -p {{ wazuh_agent_authd.port }} - {% if wazuh_agent_authd.agent_name is defined %}-A {{ wazuh_agent_authd.agent_name }} {% endif %} + {% if wazuh_agent_authd.agent_name is not none %}-A {{ wazuh_agent_authd.agent_name }} {% endif %} {% if authd_pass is defined %} -P {{ authd_pass }}{% endif %} register: agent_auth_output notify: Windows | Restart Wazuh Agent