This repository has been archived on 2020-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
galaxy-grafana.ds.influx/tasks/main.yml
2019-07-10 17:12:40 +02:00

19 lines
No EOL
661 B
YAML

---
# https://grafana.com/docs/installation/debian/
- name: Create InfluxDB datasource
grafana_datasource:
name: "{{ datasource_name }}"
grafana_url: "{{ grafana_proto }}://{{ grafana_domain }}:{{ grafana_port }}"
grafana_user: "{{ grafana_admin_user }}"
grafana_password: "{{ grafana_admin_pass }}"
org_id: "{{ grafana_org_id }}"
ds_type: "influxdb"
url: "{{ influx_proto }}://{{ influx_url }}:{{ influx_port }}"
database: "{{ influx_db_name }}"
basic_auth_user: "{{ influx_user }}"
basic_auth_password: "{{ influx_pass }}"
is_default: "{{ is_default }}"
time_interval: ">10s"
when: influx_datasource_setup