munin: cleanup and deduplicate notify
This commit is contained in:
parent
f7673a7340
commit
10b9d9e76f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue