mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
3826a37496 | |||
4d197aa8ea | |||
40230aa198 |
@ -5,6 +5,10 @@ Below an overview of all changes in the releases.
|
|||||||
|
|
||||||
Version (Release date)
|
Version (Release date)
|
||||||
|
|
||||||
|
0.5.1 (2016-08-24)
|
||||||
|
|
||||||
|
* fixed issue with ansible not getting the package #6 (By pull request: thecodeassassin (Thanks!))
|
||||||
|
|
||||||
0.5.0 (2016-07-17)
|
0.5.0 (2016-07-17)
|
||||||
|
|
||||||
* Removed Test Kitchen tests
|
* Removed Test Kitchen tests
|
||||||
|
@ -1,14 +1,45 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: "Fetch telegraf installation package | Debian"
|
- name: Ensure the system can use the HTTPS transport for APT.
|
||||||
action: get_url
|
stat:
|
||||||
url={{ telegraf_agent_deb_url }}
|
path: /usr/lib/apt/methods/https
|
||||||
dest=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
|
register: apt_https_transport
|
||||||
mode=0440
|
tags:
|
||||||
|
- telegraf
|
||||||
|
- packages
|
||||||
|
|
||||||
|
- name: Install APT HTTPS transport.
|
||||||
|
apt:
|
||||||
|
name: "apt-transport-https"
|
||||||
|
state: present
|
||||||
|
when: not apt_https_transport.stat.exists
|
||||||
|
tags:
|
||||||
|
- telegraf
|
||||||
|
- packages
|
||||||
|
|
||||||
|
- name: Download Influxdb apt key.
|
||||||
|
apt_key:
|
||||||
|
url: "https://repos.influxdata.com/influxdb.key"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- telegraf
|
||||||
|
- packages
|
||||||
|
|
||||||
|
- name: Add Influxdb repository.
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
|
||||||
|
filename: "influxdb"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- telegraf
|
||||||
|
- packages
|
||||||
|
|
||||||
- name: "Install telegraf package | Debian"
|
- name: "Install telegraf package | Debian"
|
||||||
action: apt
|
action: apt
|
||||||
deb=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
|
name=telegraf
|
||||||
state=installed
|
state=installed
|
||||||
notify: "Restart Telegraf"
|
notify: "Restart Telegraf"
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
tags:
|
||||||
|
- telegraf
|
||||||
|
- packages
|
||||||
|
Reference in New Issue
Block a user