feat: add reload handler
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1dd4043ae3
commit
cb5e5aa8a1
@ -8,3 +8,13 @@
|
||||
listen: __telegraf_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
||||
- name: Reload Telegraf
|
||||
service:
|
||||
name: telegraf
|
||||
state: reloaded
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
listen: __telegraf_reload
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -32,7 +32,7 @@
|
||||
with_fileglob: "{{ telegraf_template_files }}"
|
||||
loop_control:
|
||||
label: "{{ item | basename | splitext | first }}"
|
||||
notify: __telegraf_restart
|
||||
notify: __telegraf_reload
|
||||
|
||||
- name: Add docker group
|
||||
user:
|
||||
@ -49,7 +49,7 @@
|
||||
owner: telegraf
|
||||
group: root
|
||||
mode: 0600
|
||||
notify: __telegraf_restart
|
||||
notify: __telegraf_reload
|
||||
|
||||
- name: Ensure Telegraf is up and running
|
||||
service:
|
||||
|
@ -25,5 +25,6 @@
|
||||
mode: "0750"
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
notify: __telegraf_reload
|
||||
become: True
|
||||
become_user: root
|
||||
|
Loading…
Reference in New Issue
Block a user