27 lines
543 B
YAML
27 lines
543 B
YAML
---
|
|
- block:
|
|
|
|
- name: install influxdb
|
|
apt:
|
|
name:
|
|
- influxdb
|
|
update_cache: true
|
|
cache_valid_time: 3600
|
|
|
|
- name: install /etc/influxdb/influxdb.conf
|
|
template:
|
|
src: etc/influxdb/influxdb.conf.j2
|
|
dest: /etc/influxdb/influxdb.conf
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: systemctl restart influxdb
|
|
|
|
- name: ensure influxdb is running
|
|
systemd:
|
|
state: started
|
|
name: influxdb
|
|
|
|
become: "{{ influxdb_become }}"
|
|
become_user: "{{ influxdb_become_user }}"
|