update check on windows wazuh_agent_authd.agent_name's definition

This commit is contained in:
Hadrien 2020-06-26 18:56:01 +02:00 committed by Manuel Gutierrez
parent a83fe5077c
commit d6f3d91a46
No known key found for this signature in database
GPG Key ID: CEB8789DAED15AAD

View File

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