ansible/roles/influxdb/tasks/main.yml
Salt 15e61e8612 Remove influxdb-client
This is installed by the new influxdb package
2020-08-31 01:54:18 -05:00

21 lines
458 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Install and configure Influxdb
block:
- 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
become: yes