Initial working version

This commit is contained in:
Werner Dijkerman
2018-11-22 20:12:07 +01:00
parent c04c94b84a
commit 85ee6f2c94
3 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,7 @@
# defaults file for ansible-telegraf
telegraf_agent_version: 1.7.3
telegraf_agent_version_patch: 1
telegraf_agent_hostname: "{{ ansible_fqdn }}"
telegraf_agent_interval: 10
telegraf_agent_debug: False

View File

@ -37,7 +37,8 @@
- name: "Install telegraf package | Debian"
apt:
name: "telegraf"
name: telegraf={{ telegraf_agent_version }}-{{ telegraf_agent_version_patch }}
state: present
force: True
notify: "Restart Telegraf"
become: yes

View File

@ -11,6 +11,6 @@
- name: "Install telegraf package | RedHat"
yum:
name: "telegraf-{{ telegraf_agent_version }}"
state: installed
name: telegraf-{{ telegraf_agent_version }}
state: present
notify: "Restart Telegraf"