Commit d140e824 authored by Dan Thomson's avatar Dan Thomson

[#1] Don't attempt to (re) start services in a Docker container

parent 3e9ac332
Pipeline #2160 passed with stage
in 1 minute and 28 seconds
......@@ -49,13 +49,13 @@
service:
name: nrpe
state: restarted
when: (nrpe_cfg_file.changed or nrpe_extra_cfg_file.changed) and nrpe_autostart
when: ansible_virtualization_type != "docker" and (nrpe_cfg_file.changed or nrpe_extra_cfg_file.changed) and nrpe_autostart
become: yes
- name: Ensure nrpe has started
service:
name: nrpe
state: started
when: nrpe_autostart
when: ansible_virtualization_type != "docker" and nrpe_autostart
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