From 137144e9c39045a2bb69ed04f3ea4ea61156411d Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 23 Jul 2022 17:26:39 -0500 Subject: [PATCH] Hopefully fix nagios role changing ownership on a file and causing unnecessary restarts --- roles/nagios/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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