diff --git a/roles/nagios/tasks/main.yml b/roles/nagios/tasks/main.yml index 8b61d82..da39ebc 100644 --- a/roles/nagios/tasks/main.yml +++ b/roles/nagios/tasks/main.yml @@ -24,7 +24,6 @@ - "{{ nagios_data_dir }}/plugins:/opt/Custom-Nagios-Plugins" - "{{ nagios_data_dir }}/nagiosgraph/var:/opt/nagiosgraph/var" - "{{ nagios_data_dir }}/nagiosgraph/etc:/opt/nagiosgraph/etc" - - /dev/null:/opt/nagios/bin/nsca - /dev/null:/opt/nagios/bin/send_nsca tags: [ docker, nagios ] - name: template out scripts for nagios @@ -33,7 +32,7 @@ - notify-by-matrix tags: [ nagios, template, plugins ] - name: template out config for nagios - template: src=nagios-ansible-inventory.cfg.j2 dest="{{ nagios_data_dir }}/etc/objects/ansible.cfg" owner=root group=root mode=0644 + template: src=nagios-ansible-inventory.cfg.j2 dest="{{ nagios_data_dir }}/etc/objects/ansible.cfg" owner=101 group=100 mode=0644 tags: [ nagios, template ] notify: restart nagios - name: assure config file is loaded