修改telegraf 安装失败问题
This commit is contained in:
Binary file not shown.
BIN
roles/sapp/files/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
Normal file
BIN
roles/sapp/files/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user