From 10b9d9e76f973f332018ec22b9b3b7dc188fddf0 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 30 Mar 2017 15:32:05 +0200 Subject: [PATCH] munin: cleanup and deduplicate notify --- munin/tasks/openbsd.yml | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/munin/tasks/openbsd.yml b/munin/tasks/openbsd.yml index 89337cbc..fc9a1027 100644 --- a/munin/tasks/openbsd.yml +++ b/munin/tasks/openbsd.yml @@ -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 -