ansible/roles/influxdb/tasks/main.yml

21 lines
458 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:
2020-08-30 19:35:18 -05:00
- name: Install package
apt:
name:
- influxdb
- name: Template out config
template:
src: "influxdb.conf"
dest: "/etc/influxdb/influxdb.conf"
notify: restart influxdb
- name: Start and enable Influxdb
systemd:
name: influxdb
enabled: yes
state: started
2020-05-10 04:03:26 -05:00
become: yes