Hopefully fix nagios role changing ownership on a file and causing unnecessary restarts

This commit is contained in:
Salt 2022-07-23 17:26:39 -05:00
parent 34b1765bc7
commit 137144e9c3
1 changed files with 1 additions and 1 deletions

View File

@ -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