munin: cleanup and deduplicate notify

This commit is contained in:
Jérémy Lecour 2017-03-30 15:32:05 +02:00 committed by Jérémy Lecour
parent f7673a7340
commit 10b9d9e76f

View file

@ -31,7 +31,7 @@
- name: Set munin-node config - name: Set munin-node config
template: template:
src: munin-node.conf.j2 src: munin-node.conf.j2
dest: /etc/munin/munin-node.conf dest: /etc/munin/munin-node.conf
mode: "0644" mode: "0644"
notify: restart munin_node notify: restart munin_node
@ -52,24 +52,23 @@
src: "/usr/local/libexec/munin/plugins/{{ item }}" src: "/usr/local/libexec/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}" dest: "/etc/munin/plugins/{{ item }}"
state: link state: link
notify: restart munin_node
with_items: with_items:
- 'cpu' - cpu
- 'df' - df
- 'df_inode' - df_inode
- 'load' - load
- 'memory' - memory
- 'munin_stats' - munin_stats
- 'netstat' - netstat
- 'open_files' - open_files
- 'pf_changes' - pf_changes
- 'pf_searches' - pf_searches
- 'pf_states' - pf_states
- 'processes' - processes
- 'systat' - systat
- 'uptime' - uptime
- 'users' - users
- 'vmstat' - vmstat
notify: restart munin_node notify: restart munin_node
tags: tags:
- munin - munin
@ -87,7 +86,7 @@
src: /usr/local/libexec/munin/plugins/sensors_ src: /usr/local/libexec/munin/plugins/sensors_
dest: /etc/munin/plugins/sensors_temp dest: /etc/munin/plugins/sensors_temp
state: link state: link
when: ansible_vio0 is undefined when: ansible_vio0 is undefined
notify: restart munin_node notify: restart munin_node
tags: tags:
- munin - munin
@ -99,4 +98,3 @@
state: started state: started
tags: tags:
- munin - munin