mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Wen copying/removing plugins show only plugin name
This commit is contained in:
@ -67,6 +67,8 @@
|
||||
group: telegraf
|
||||
mode: 0640
|
||||
with_dict: "{{ telegraf_plugins_extra }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
when: "telegraf_plugins_extra is defined and telegraf_plugins_extra is iterable and item.value.state|default('present') != 'absent'"
|
||||
become: yes
|
||||
notify: "Restart Telegraf"
|
||||
@ -76,6 +78,8 @@
|
||||
path: "/etc/telegraf/telegraf.d/{{ item.key }}.conf"
|
||||
state: absent
|
||||
with_dict: "{{ telegraf_plugins_extra }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
when: "telegraf_plugins_extra is defined and telegraf_plugins_extra is iterable and item.value.state|default('present') == 'absent'"
|
||||
become: yes
|
||||
notify: "Restart Telegraf"
|
||||
|
Reference in New Issue
Block a user