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