晚上服务器部署模式

This commit is contained in:
fumingwei
2021-01-29 19:41:26 +08:00
parent 5267b73590
commit bcf5049ecb
21 changed files with 262 additions and 97 deletions

View File

@@ -11,9 +11,17 @@
- name: "Templates telegraf_collect.conf"
template:
src: "{{role_path}}/templates/telegraf_collect.conf.j2"
src: "{{role_path}}/templates/telegraf_collect.conf_adc.j2"
dest: /etc/telegraf/telegraf_collect.conf
tags: template
when: tsg_running_type == 2
- name: "Templates telegraf_collect.conf"
template:
src: "{{role_path}}/templates/telegraf_collect.conf_server.j2"
dest: /etc/telegraf/telegraf_collect.conf
tags: template
when: tsg_running_type != 2
- name: "copy telegraf_collect.service to destination server"
copy: