diff --git a/tests/integration/targets/grafana_datasource/site.yml b/tests/integration/targets/grafana_datasource/site.yml index c8374dcd..496bcd69 100644 --- a/tests/integration/targets/grafana_datasource/site.yml +++ b/tests/integration/targets/grafana_datasource/site.yml @@ -1,6 +1,11 @@ --- - name: Run tests for grafana_datasource hosts: localhost + module_defaults: + community.grafana.grafana_datasource: + grafana_url: http://grafana:3000 + grafana_user: admin + grafana_password: admin tasks: - ansible.builtin.include_role: name: ../../grafana_datasource diff --git a/tests/integration/targets/grafana_datasource/tasks/alertmanager.yml b/tests/integration/targets/grafana_datasource/tasks/alertmanager.yml index 154e9c61..2df5e9f4 100644 --- a/tests/integration/targets/grafana_datasource/tasks/alertmanager.yml +++ b/tests/integration/targets/grafana_datasource/tasks/alertmanager.yml @@ -2,9 +2,6 @@ register: result grafana_datasource: name: datasource-alertmanager - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: '1' ds_type: alertmanager ds_url: alertmanager.company.com:9093 @@ -23,9 +20,6 @@ register: result grafana_datasource: name: datasource-alertmanager - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: '1' ds_type: alertmanager ds_url: alertmanager.company.com:9093 @@ -54,9 +48,6 @@ register: result grafana_datasource: name: datasource-alertmanager - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - debug: @@ -71,9 +62,6 @@ register: result grafana_datasource: name: datasource-alertmanager - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/azure.yml b/tests/integration/targets/grafana_datasource/tasks/azure.yml index 0dbd9496..588a6013 100644 --- a/tests/integration/targets/grafana_datasource/tasks/azure.yml +++ b/tests/integration/targets/grafana_datasource/tasks/azure.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-azure - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: grafana-azure-monitor-datasource ds_url: http://example.com @@ -42,9 +39,6 @@ register: result community.grafana.grafana_datasource: name: datasource-azure - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: grafana-azure-monitor-datasource ds_url: http://example.com @@ -80,9 +74,6 @@ register: result community.grafana.grafana_datasource: name: datasource-azure - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: grafana-azure-monitor-datasource ds_url: http://example.com @@ -104,9 +95,6 @@ register: result community.grafana.grafana_datasource: name: datasource-azure - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: grafana-azure-monitor-datasource ds_url: http://example.com diff --git a/tests/integration/targets/grafana_datasource/tasks/cloudwatch.yml b/tests/integration/targets/grafana_datasource/tasks/cloudwatch.yml index 79408b68..1be7d21f 100644 --- a/tests/integration/targets/grafana_datasource/tasks/cloudwatch.yml +++ b/tests/integration/targets/grafana_datasource/tasks/cloudwatch.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-cloudwatch - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: cloudwatch ds_url: http://monitoring.us-west-1.amazonaws.com @@ -43,9 +40,6 @@ register: result community.grafana.grafana_datasource: name: datasource-cloudwatch - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: cloudwatch ds_url: http://monitoring.us-west-1.amazonaws.com @@ -82,9 +76,6 @@ register: result community.grafana.grafana_datasource: name: datasource-cloudwatch - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -99,9 +90,6 @@ register: result community.grafana.grafana_datasource: name: datasource-cloudwatch - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/elastic.yml b/tests/integration/targets/grafana_datasource/tasks/elastic.yml index be587357..f27b1592 100644 --- a/tests/integration/targets/grafana_datasource/tasks/elastic.yml +++ b/tests/integration/targets/grafana_datasource/tasks/elastic.yml @@ -4,9 +4,6 @@ community.grafana.grafana_datasource: name: datasource/elasticLegacy uid: myuid - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.company.com:9200 @@ -50,9 +47,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.company.com:9200 @@ -96,9 +90,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.company.com:9200 @@ -141,9 +132,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.example.com:9200 @@ -186,9 +174,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.example.com:9200 @@ -237,9 +222,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.example.com:9200 @@ -290,9 +272,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elasticLegacy - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -303,9 +282,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elasticLegacy - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -316,9 +292,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -329,9 +302,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: diff --git a/tests/integration/targets/grafana_datasource/tasks/errors.yml b/tests/integration/targets/grafana_datasource/tasks/errors.yml index 779b4724..6c060ddc 100644 --- a/tests/integration/targets/grafana_datasource/tasks/errors.yml +++ b/tests/integration/targets/grafana_datasource/tasks/errors.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-postgres - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" ignore_errors: true - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/influx.yml b/tests/integration/targets/grafana_datasource/tasks/influx.yml index 7952bec6..53ff513f 100644 --- a/tests/integration/targets/grafana_datasource/tasks/influx.yml +++ b/tests/integration/targets/grafana_datasource/tasks/influx.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-influxdb - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: influxdb ds_url: https://influx.company.com:8086 @@ -25,9 +22,6 @@ register: result community.grafana.grafana_datasource: name: datasource-influxdb - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: influxdb ds_url: https://influx.company.com:8086 @@ -60,9 +54,6 @@ register: result community.grafana.grafana_datasource: name: datasource-influxdb - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -76,9 +67,6 @@ register: result community.grafana.grafana_datasource: name: datasource-influxdb - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/issues.yml b/tests/integration/targets/grafana_datasource/tasks/issues.yml index 3b4df5a7..8279423c 100644 --- a/tests/integration/targets/grafana_datasource/tasks/issues.yml +++ b/tests/integration/targets/grafana_datasource/tasks/issues.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource/elastic - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: elasticsearch ds_url: https://elastic.company.com:9200 diff --git a/tests/integration/targets/grafana_datasource/tasks/loki.yml b/tests/integration/targets/grafana_datasource/tasks/loki.yml index a501b99d..1e9bfe70 100644 --- a/tests/integration/targets/grafana_datasource/tasks/loki.yml +++ b/tests/integration/targets/grafana_datasource/tasks/loki.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-loki - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: loki ds_url: https://loki.company.com:3100 @@ -22,9 +19,6 @@ register: result community.grafana.grafana_datasource: name: datasource-loki - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: loki ds_url: https://loki.company.com:3100 @@ -53,9 +47,6 @@ register: result community.grafana.grafana_datasource: name: datasource-loki - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -70,9 +61,6 @@ register: result community.grafana.grafana_datasource: name: datasource-loki - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/postgres.yml b/tests/integration/targets/grafana_datasource/tasks/postgres.yml index 8945e2bd..8011bba2 100644 --- a/tests/integration/targets/grafana_datasource/tasks/postgres.yml +++ b/tests/integration/targets/grafana_datasource/tasks/postgres.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-postgres - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: postgres ds_url: postgres.company.com:5432 @@ -28,9 +25,6 @@ register: result community.grafana.grafana_datasource: name: datasource-postgres - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: postgres ds_url: postgres.company.com:5432 @@ -65,9 +59,6 @@ register: result community.grafana.grafana_datasource: name: datasource-postgres - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -81,9 +72,6 @@ register: result community.grafana.grafana_datasource: name: datasource-postgres - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/quickwit.yml b/tests/integration/targets/grafana_datasource/tasks/quickwit.yml index 8221dcb4..087af0e7 100644 --- a/tests/integration/targets/grafana_datasource/tasks/quickwit.yml +++ b/tests/integration/targets/grafana_datasource/tasks/quickwit.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: Quickwit - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: quickwit-quickwit-datasource ds_url: http://localhost:7280/api/v1 @@ -40,9 +37,6 @@ register: result community.grafana.grafana_datasource: name: Quickwit - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: quickwit-quickwit-datasource ds_url: http://localhost:7280/api/v1 @@ -77,9 +71,6 @@ register: result community.grafana.grafana_datasource: name: Quickwit - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: quickwit-quickwit-datasource ds_url: http://quickwit-url:7280/api/v1 @@ -114,9 +105,6 @@ register: result community.grafana.grafana_datasource: name: Quickwit - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -127,9 +115,6 @@ register: result community.grafana.grafana_datasource: name: Quickwit - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: diff --git a/tests/integration/targets/grafana_datasource/tasks/redis.yml b/tests/integration/targets/grafana_datasource/tasks/redis.yml index dc39be64..5d319363 100644 --- a/tests/integration/targets/grafana_datasource/tasks/redis.yml +++ b/tests/integration/targets/grafana_datasource/tasks/redis.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-redis - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: redis-datasource ds_url: https://redis.company.com:6379 @@ -29,9 +26,6 @@ register: result community.grafana.grafana_datasource: name: datasource-redis - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: redis-datasource ds_url: https://redis.company.com:6379 @@ -54,9 +48,6 @@ register: result community.grafana.grafana_datasource: name: datasource-redis - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: redis-datasource ds_url: https://redisnew.company.com:6379 @@ -79,9 +70,6 @@ register: result community.grafana.grafana_datasource: name: datasource-redis - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -92,9 +80,6 @@ register: result community.grafana.grafana_datasource: name: datasource-redis - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: diff --git a/tests/integration/targets/grafana_datasource/tasks/tempo.yml b/tests/integration/targets/grafana_datasource/tasks/tempo.yml index 51ab5251..6c42bc5c 100644 --- a/tests/integration/targets/grafana_datasource/tasks/tempo.yml +++ b/tests/integration/targets/grafana_datasource/tasks/tempo.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-tempo - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: tempo ds_url: tempo.company.com:3100 @@ -22,9 +19,6 @@ register: result community.grafana.grafana_datasource: name: datasource-tempo - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: tempo ds_url: tempo.company.com:3100 @@ -50,9 +44,6 @@ register: result community.grafana.grafana_datasource: name: datasource-tempo - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -66,9 +57,6 @@ register: result community.grafana.grafana_datasource: name: datasource-tempo - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: diff --git a/tests/integration/targets/grafana_datasource/tasks/thruk.yml b/tests/integration/targets/grafana_datasource/tasks/thruk.yml index 74f7c4df..fc00b67e 100644 --- a/tests/integration/targets/grafana_datasource/tasks/thruk.yml +++ b/tests/integration/targets/grafana_datasource/tasks/thruk.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-thruk - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: sni-thruk-datasource ds_url: https://thruk.company.com/sitename/thruk @@ -24,9 +21,6 @@ register: result community.grafana.grafana_datasource: name: datasource-thruk - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: sni-thruk-datasource ds_url: https://thruk.company.com/sitename/thruk @@ -53,9 +47,6 @@ register: result community.grafana.grafana_datasource: name: datasource-thruk - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.debug: @@ -69,9 +60,6 @@ register: result community.grafana.grafana_datasource: name: datasource-thruk - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: diff --git a/tests/integration/targets/grafana_datasource/tasks/uid.yml b/tests/integration/targets/grafana_datasource/tasks/uid.yml index 7a472b42..bfd337f6 100644 --- a/tests/integration/targets/grafana_datasource/tasks/uid.yml +++ b/tests/integration/targets/grafana_datasource/tasks/uid.yml @@ -4,9 +4,6 @@ community.grafana.grafana_datasource: name: datasource-with-uid uid: uid1 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -27,9 +24,6 @@ register: result community.grafana.grafana_datasource: name: datasource-without-uid - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -51,9 +45,6 @@ community.grafana.grafana_datasource: name: datasource-with-uid uid: uid1 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -84,9 +75,6 @@ register: result community.grafana.grafana_datasource: name: datasource-without-uid - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -118,9 +106,6 @@ community.grafana.grafana_datasource: name: datasource-without-uid uid: uid3 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -152,9 +137,6 @@ community.grafana.grafana_datasource: name: datasource-with-uid uid: uid2 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -186,9 +168,6 @@ community.grafana.grafana_datasource: name: datasource-with-uid uid: uid1 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -209,9 +188,6 @@ register: result community.grafana.grafana_datasource: name: datasource-without-uid - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 @@ -233,9 +209,6 @@ community.grafana.grafana_datasource: name: datasource-with-uid uid: uid1 - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: prometheus ds_url: https://prometheus.company.com:8086 diff --git a/tests/integration/targets/grafana_datasource/tasks/zabbix.yml b/tests/integration/targets/grafana_datasource/tasks/zabbix.yml index d238efb3..a30f05a1 100644 --- a/tests/integration/targets/grafana_datasource/tasks/zabbix.yml +++ b/tests/integration/targets/grafana_datasource/tasks/zabbix.yml @@ -3,9 +3,6 @@ register: result community.grafana.grafana_datasource: name: datasource-zabbix - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: alexanderzobnin-zabbix-datasource ds_url: https://zabbix.company.com @@ -33,9 +30,6 @@ register: result community.grafana.grafana_datasource: name: datasource-zabbix - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: alexanderzobnin-zabbix-datasource ds_url: https://zabbix.company.com @@ -62,9 +56,6 @@ register: result community.grafana.grafana_datasource: name: datasource-zabbix - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" org_id: "1" ds_type: alexanderzobnin-zabbix-datasource ds_url: https://zabbix.example.com @@ -92,9 +83,6 @@ register: result community.grafana.grafana_datasource: name: datasource-zabbix - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: @@ -105,9 +93,6 @@ register: result community.grafana.grafana_datasource: name: datasource-zabbix - grafana_url: "{{ grafana_url }}" - grafana_user: "{{ grafana_username }}" - grafana_password: "{{ grafana_password }}" state: absent - ansible.builtin.assert: