41 lines
935 B
YAML
41 lines
935 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- ansible-role-influxdb
|
|
vars:
|
|
influxdb_api_password: password
|
|
influxdb_users:
|
|
- name: '{{ influxdb_api_user }}'
|
|
password: '{{ influxdb_api_password }}'
|
|
admin: yes
|
|
- name: test
|
|
password: test2
|
|
grants:
|
|
- database: test_db
|
|
privilege: WRITE
|
|
- name: user_absent
|
|
state: absent
|
|
influxdb_databases:
|
|
- test_db
|
|
influxdb_retention_policies:
|
|
- name: default
|
|
database: test_db
|
|
duration: 1d
|
|
default: true
|
|
influxdb_config:
|
|
'[collectd]':
|
|
enabled: true
|
|
port: 25826
|
|
database: collectd
|
|
typesdb: /usr/share/collectd/types.db
|
|
|
|
pre_tasks:
|
|
- name: update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
- name: install collectd package
|
|
ansible.builtin.package:
|
|
name:
|
|
- collectd-core
|