ansible/roles/influxdb/tasks/main.yml

24 lines
628 B
YAML
Raw Normal View History

2020-05-10 04:03:26 -05:00
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Install and configure Influxdb
block:
- name: Install influxdb
2020-05-10 04:18:21 -05:00
block:
- name: Install package
apt:
name:
- influxdb
- influxdb-client
- name: Template out config
template:
src: "influxdb.conf"
dest: "/etc/influxdb/influxdb.conf"
notify: restart influxdb
- name: Install telegraf
block:
- name: Install package
apt:
deb: "https://dl.influxdata.com/telegraf/releases/telegraf_1.14.2-1_amd64.deb"
2020-05-10 04:03:26 -05:00
become: yes