ansible/test/integration/targets/setup_grafana/tasks/setup.yml
Rémi REY 9c17c7ad19 Add integration tests for grafana_datasource module (#63986)
* Add setup_grafana role for integration tests

* grafana_datasource: add integration tests for elastic datasource

* grafana_datasource: add integration tests for influxdb datasource

* grafana_datasource: add integration tests for postgres datasource

* grafana_datasource: add integration tests for cloudwatch datasource
2019-10-29 22:39:38 +01:00

30 lines
598 B
YAML

- name: Install deps
package:
name:
- apt-transport-https
- software-properties-common
- name: Add the Grafana GPG key
apt_key:
url: https://packages.grafana.com/gpg.key
state: present
- name: Add grafana apt repository
apt_repository:
repo: deb https://packages.grafana.com/oss/deb stable main
state: present
- name: Install Grafana server
apt:
allow_unauthenticated: yes
name: grafana
- name: start Grafana
service:
name: grafana-server
state: started
- name: wait for grafana to be up
wait_for:
host: 127.0.0.1
port: 3000