influxdb_database – Manage InfluxDB databases¶
Requirements¶
The below requirements are needed on the host that executes this module.
- python >= 2.6
- influxdb >= 0.9 & <= 1.2.4
- requests
Parameters¶
Examples¶
# Example influxdb_database command from Ansible Playbooks
- name: Create database
influxdb_database:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"
- name: Destroy database
influxdb_database:
hostname: "{{influxdb_ip_address}}"
database_name: "{{influxdb_database_name}}"
state: absent
- name: Create database using custom credentials
influxdb_database:
hostname: "{{influxdb_ip_address}}"
username: "{{influxdb_username}}"
password: "{{influxdb_password}}"
database_name: "{{influxdb_database_name}}"
ssl: yes
validate_certs: yes
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Kamil Szczygiel (@kamsz)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.