Verified Commit 6aaa5134 authored by Dan Thomson's avatar Dan Thomson
Browse files

Include the commands.cfg template by default

parent 87be4a71
Pipeline #7592 failed with stage
in 3 minutes and 27 seconds
......@@ -294,6 +294,6 @@ ssl_version: TLSv1+
############# OTHER ROLE-BASED OPTIONS
extra_config_files:
- commands.cfg
- etc/nrpe.d/commands.cfg
nrpe_autostart: True
- name: Install dependencies
yum:
name: "{{ package }}"
name: "{{ packages }}"
state: latest
with_items: "{{ packages }}"
loop_control:
loop_var: package
become: yes
......@@ -58,5 +58,16 @@
service:
name: nrpe
state: started
enabled: yes
when: ansible_virtualization_type != "docker" and nrpe_autostart
become: yes
- name: Restart nrpe if the config has changed
service:
name: nrpe
state: restarted
when: >
ansible_virtualization_type != "docker" and
nrpe_autostart and
nrpe_extra_cfg_file.changed
become: yes
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