InfluxDB role, adopted for InfluxDB v2 OSS edition
influx_db_name: database_name
backup_path: '/var/tmp/restore/'
influx_data_dir: "/var/lib/influxdb/data"
influx_meta_dir: "/var/lib/influxdb/meta"
backup_backet: "aws backet"
access_key_id: "your key"
secret_key: "your secret"
upload_folder: "influxdb"
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: influx-backup }
GPLv2