homeserver/Archiv/mgrote.influxdb/tasks/config.yml

23 lines
471 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
---
- name: copy influxdb.conf
become: yes
template:
src: influxdb.conf
dest: /etc/influxdb/influxdb.conf
- name: restart_influxd
service:
name: influxd
state: started
enabled: yes
- name: create influxdb users
become: yes
influxdb_user:
user_name: "{{ item.name }}"
user_password: "{{ item.password }}"
state: present
hostname: localhost
loop: "{{ influxdb_users }}"
no_log: true