Ansible's influxdb_*
modules do not support InfluxDB v2 as they are based on https://github.com/influxdata/influxdb-python:
Note: This library is for use with InfluxDB 1.x. For connecting to InfluxDB 2.x instances, please use the the influxdb-client-python client.
influxdb_v2_user_url: http://localhost:8086
influxdb_v2_user_url_username: admin
influxdb_v2_user_url_password: admin-password
influxdb_v2_user_name: new-user
influxdb_v2_user_fetch_authorizations: true # default: false
influxdb_v2_user_authorizations_overwrite: # or _append
- organization_id: 0123456789abcdef
permissions:
- action: write
resource:
orgID: 0123456789abcdef
org: some-organization
type: buckets
influxdb_v2_user_id
influxdb_v2_user_authorizations # when influxdb_v2_user_fetch_authorizations true
influxdb_v2_user_url_cookies_string