Update Wazuh Agent registration task with new "agent_name" var

This commit is contained in:
Jose M 2019-11-05 12:49:21 +01:00
parent 0ce3590b6e
commit 5af556b72c

View File

@ -51,7 +51,7 @@
- name: Linux | Register agent (via authd)
shell: >
/var/ossec/bin/agent-auth
-A {{ agent_name }}
{% if wazuh_agent_authd.agent_name is not none %}-A {{ agent_name }} {% endif %}
-m {{ wazuh_managers.0.address }}
-p {{ wazuh_agent_authd.port }}
{% if wazuh_agent_nat %}-I "any" {% endif %}