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
|
2020-08-31 01:46:48 -05:00
|
|
|
- name: Start and enable Influxdb
|
|
|
|
systemd:
|
|
|
|
name: influxdb
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2020-05-10 04:03:26 -05:00
|
|
|
become: yes
|