diff options
Diffstat (limited to 'roles/services/monitoring/influxdb/tasks')
-rw-r--r-- | roles/services/monitoring/influxdb/tasks/main.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/services/monitoring/influxdb/tasks/main.yml b/roles/services/monitoring/influxdb/tasks/main.yml new file mode 100644 index 0000000..06d6e86 --- /dev/null +++ b/roles/services/monitoring/influxdb/tasks/main.yml | |||
@@ -0,0 +1,19 @@ | |||
1 | - name: install packages | ||
2 | package: | ||
3 | name: "{{ influxdb_packages }}" | ||
4 | state: latest | ||
5 | |||
6 | - name: copy config | ||
7 | notify: restart influxdb | ||
8 | copy: | ||
9 | src: "{{ influx_config }}" | ||
10 | dest: /etc/influxdb/influxdb.conf | ||
11 | owner: root | ||
12 | group: root | ||
13 | mode: '0644' | ||
14 | |||
15 | - name: enable influxdb | ||
16 | systemd: | ||
17 | name: influxdb | ||
18 | enabled: yes | ||
19 | masked: no | ||