修改telegraf 安装失败问题

This commit is contained in:
fumingwei
2020-10-17 18:04:44 +08:00
parent 11bf3dfa8e
commit 7800356765
5 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@@ -13,7 +13,7 @@
- name: "install sapp rpms from localhost" - name: "install sapp rpms from localhost"
yum: yum:
name: name:
- /tmp/ansible_deploy/sapp-4.1.11.3fb4f0b-2.el7.x86_64.rpm - /tmp/ansible_deploy/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
state: present state: present
skip_broken: yes skip_broken: yes

View File

@@ -19,7 +19,7 @@
copy: copy:
src: "{{ role_path }}/files/telegraf_collect.service" src: "{{ role_path }}/files/telegraf_collect.service"
dest: /usr/lib/systemd/system dest: /usr/lib/systemd/system
mode: 0755 mode: 0644
- name: "Start telegraf_collect" - name: "Start telegraf_collect"
systemd: systemd:

View File

@@ -19,10 +19,11 @@
copy: copy:
src: "{{ role_path }}/files/telegraf_statistic.service" src: "{{ role_path }}/files/telegraf_statistic.service"
dest: /usr/lib/systemd/system dest: /usr/lib/systemd/system
mode: 0755 mode: 0644
- name: "Start telegraf" - name: "Start telegraf"
systemd: systemd:
name: telegraf_statistic.service name: telegraf_statistic.service
state: started state: started
enabled: yes enabled: yes
daemon_reload: yes