1.add yml file to restart telegraf_statistic

This commit is contained in:
fumingwei
2020-11-20 16:52:50 +06:00
parent 363348f169
commit ebd9adc3a9
3 changed files with 13 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
- hosts: - hosts:
- adc_mxn
- adc_mcn0 - adc_mcn0
- adc_mcn1 - adc_mcn1
- adc_mcn2 - adc_mcn2

View File

@@ -1,4 +1,5 @@
--- ---
- include: restart_telegraf_statistic.yml
- include: restart_mrzcpd.yml - include: restart_mrzcpd.yml
- include: restart_sapp.yml - include: restart_sapp.yml
- include: restart_certstore.yml - include: restart_certstore.yml

View File

@@ -0,0 +1,11 @@
- hosts:
- adc_mcn0
remote_user: root
tasks:
- name: 'telegraf_statistic service start'
systemd:
name: telegraf_statistic
enabled: yes
daemon_reload: yes
state: restarted