Fix list check if it's empty

This commit is contained in:
Rshad Zhran 2020-03-20 21:35:18 +01:00
parent 4adc19a02f
commit c63756d541

View File

@ -76,7 +76,7 @@
-k "/var/ossec/etc/{{ wazuh_agent_authd.ssl_agent_key | basename }}" -k "/var/ossec/etc/{{ wazuh_agent_authd.ssl_agent_key | basename }}"
{% endif %} {% endif %}
{% if wazuh_agent_authd.ssl_auto_negotiate == 'yes' %} -a {% endif %} {% if wazuh_agent_authd.ssl_auto_negotiate == 'yes' %} -a {% endif %}
{% if wazuh_agent_authd.groups is defined and wazuh_agent_authd.groups != None %} {% if wazuh_agent_authd.groups is defined and wazuh_agent_authd.groups | length > 0 %}
-G "{{ wazuh_agent_authd.groups | join(',') }}" -G "{{ wazuh_agent_authd.groups | join(',') }}"
{% endif %} {% endif %}
register: agent_auth_output register: agent_auth_output