diff --git a/playbooks/tasks/web/nagios-hosts.cfg.j2 b/playbooks/tasks/web/nagios-ansible.cfg.j2 similarity index 100% rename from playbooks/tasks/web/nagios-hosts.cfg.j2 rename to playbooks/tasks/web/nagios-ansible.cfg.j2 diff --git a/playbooks/tasks/web/nagios.yml b/playbooks/tasks/web/nagios.yml index 6b5ffda..9e00526 100644 --- a/playbooks/tasks/web/nagios.yml +++ b/playbooks/tasks/web/nagios.yml @@ -3,7 +3,7 @@ file: path=/data/nagios state=directory mode=0755 tags: [ nagios ] - name: template out config for nagios - template: src=nagios-hosts.cfg.j2 dest=/data/nagios/etc/objects/ansible.cfg owner=root group=root mode=0644 + template: src=nagios-ansible.cfg.j2 dest=/data/nagios/etc/objects/ansible.cfg owner=root group=root mode=0644 register: config tags: [ nagios, template ] - name: assure config file is loaded