3 Commits
0.5.0 ... 0.5.1

Author SHA1 Message Date
3826a37496 Added 0.5.1 2016-08-24 19:00:27 +02:00
4d197aa8ea Merge pull request #6 from mycujoo/master
fixed issue with ansible not getting the package
2016-08-12 09:03:50 +02:00
40230aa198 fixed issue with ansible not getting the package
Ansible was not getting the package properly on ubuntu 14.04 because of SSL problems. Could be resolved by installing additional pip packages but this is cleaner.
2016-08-11 16:58:35 +02:00
2 changed files with 41 additions and 6 deletions

View File

@ -5,6 +5,10 @@ Below an overview of all changes in the releases.
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)
* Removed Test Kitchen tests

View File

@ -1,14 +1,45 @@
---
- name: "Fetch telegraf installation package | Debian"
action: get_url
url={{ telegraf_agent_deb_url }}
dest=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
mode=0440
- name: Ensure the system can use the HTTPS transport for APT.
stat:
path: /usr/lib/apt/methods/https
register: apt_https_transport
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"
action: apt
deb=/tmp/telegraf_{{ telegraf_agent_version }}-1_amd64.deb
name=telegraf
state=installed
notify: "Restart Telegraf"
sudo: yes
tags:
- telegraf
- packages