Verified Commit f8c0e1ff authored by Dan Thomson's avatar Dan Thomson
Browse files

Remove whitespace

parent abd9ee7d
Pipeline #32467 failed with stage
in 5 minutes and 15 seconds
...@@ -8,4 +8,4 @@ ...@@ -8,4 +8,4 @@
- service - service
when: when:
- "ansible_service_mgr != 'sysvinit'" - "ansible_service_mgr != 'sysvinit'"
- "nagios_nrpe_agent_service_state == 'started'" - "nagios_nrpe_agent_service_state in ['restarted', 'started']"
...@@ -11,19 +11,19 @@ ...@@ -11,19 +11,19 @@
{% if (k in nagios_nrpe_agent_config) and {% if (k in nagios_nrpe_agent_config) and
(nagios_nrpe_agent_config[k] is not none) and (nagios_nrpe_agent_config[k] is not none) and
(nagios_nrpe_agent_config[k]|string|length > 0) %} (nagios_nrpe_agent_config[k]|string|length > 0) %}
{{ k }} = {{ nagios_nrpe_agent_config[k] }} {{ k }}={{ nagios_nrpe_agent_config[k] }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for k in ['allowed_hosts', 'keep_end_vars'] %} {% for k in ['allowed_hosts', 'keep_end_vars'] %}
{% if (k in nagios_nrpe_agent_config) and {% if (k in nagios_nrpe_agent_config) and
(nagios_nrpe_agent_config[k]|length > 0) %} (nagios_nrpe_agent_config[k]|length > 0) %}
{{ k }} = {{ nagios_nrpe_agent_config[k] | join(', ') }} {{ k }}={{ nagios_nrpe_agent_config[k] | join(', ') }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if 'commands' in nagios_nrpe_agent_config %} {% if 'commands' in nagios_nrpe_agent_config %}
{% for cmd in nagios_nrpe_agent_config['commands'] %} {% for cmd in nagios_nrpe_agent_config['commands'] %}
command[{{ cmd.name }}] = {{ cmd.command }} command[{{ cmd.name }}]={{ cmd.command }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment