diff --git a/roles/nagios/tasks/main.yml b/roles/nagios/tasks/main.yml index 8fdb3a1..7e18db8 100644 --- a/roles/nagios/tasks/main.yml +++ b/roles/nagios/tasks/main.yml @@ -32,7 +32,7 @@ - notify-by-matrix tags: [ nagios, template, plugins ] - name: template out config for nagios - ansible.builtin.template: src=nagios-ansible-inventory.cfg.j2 dest="{{ nagios_data_dir }}/etc/objects/ansible.cfg" owner=101 group=100 mode=0644 + ansible.builtin.template: src=nagios-ansible-inventory.cfg.j2 dest="{{ nagios_data_dir }}/etc/objects/ansible.cfg" owner=100 group=101 mode=0644 tags: [ nagios, template ] notify: restart nagios - name: assure config file is loaded