Update Wazuh Agent registration task with new "agent_name" var
This commit is contained in:
parent
0ce3590b6e
commit
5af556b72c
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user