20.05.01
This commit is contained in:
BIN
roles/telegraf/files/telegraf-1.13.0-1.x86_64.rpm
Normal file
BIN
roles/telegraf/files/telegraf-1.13.0-1.x86_64.rpm
Normal file
Binary file not shown.
22
roles/telegraf/tasks/main.yml
Normal file
22
roles/telegraf/tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
- name: "copy telegraf.rpm to destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/"
|
||||
dest: /tmp
|
||||
|
||||
- name: "install telegraf"
|
||||
yum:
|
||||
name:
|
||||
- /tmp/telegraf-1.13.0-1.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: "Templates telegraf.conf"
|
||||
template:
|
||||
src: "{{role_path}}/templates/telegraf.conf.j2"
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
tags: template
|
||||
|
||||
- name: "Start telegraf"
|
||||
systemd:
|
||||
name: telegraf.service
|
||||
state: restarted
|
||||
enabled: yes
|
||||
Reference in New Issue
Block a user