You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/setup_grafana/tasks/setup.yml

31 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