1
2
3
4
5
6
7
8
9
---
- name: "Create database(s)"
influxdb_database:
hostname: "127.0.0.1"
database_name: "{{ item }}"
with_items: "{{ services.influxdb.databases }}"
when:
- services.influxdb.databases is defined
My personal ansible roles and playbooks [deprecated in favor of nixos]
1
2
3
4
5
6
7
8
9
---
- name: "Create database(s)"
influxdb_database:
hostname: "127.0.0.1"
database_name: "{{ item }}"
with_items: "{{ services.influxdb.databases }}"
when:
- services.influxdb.databases is defined