ansible-role-influxdb/molecule/default/converge.yml

41 lines
885 B
YAML
Raw Normal View History

2019-04-12 17:14:25 +00:00
---
2021-08-18 12:38:32 +00:00
- name: Converge
hosts: all
roles:
- ansible-role-influxdb
2019-04-12 17:14:25 +00:00
vars:
2023-09-07 08:36:42 +00:00
influxdb_init_username: admin
influxdb_init_org: init_org
influxdb_init_bucket: test
influxdb_api_token: SuP3rS3cr3t
influxdb_orgs:
neworg:
description: it's a test
init_org:
2019-04-12 17:14:25 +00:00
state: absent
2023-09-07 08:36:42 +00:00
influxdb_buckets:
mybucket:
description: KFC
retention: 3600
org: neworg
influxdb_users:
telegraf:
user_inactive:
status: inactive
influxdb_authorizations:
- user: telegraf
description: write telegraf
org: neworg
status: active
permissions:
- action: write
resource:
type: buckets
org: neworg
name: mybucket
2019-04-12 17:14:25 +00:00
pre_tasks:
2023-09-07 08:36:42 +00:00
- name: Update apt cache
2021-08-18 12:38:32 +00:00
ansible.builtin.apt:
update_cache: true