summaryrefslogtreecommitdiff
path: root/test/integration/targets/setup_grafana/tasks/setup.yml
blob: 34e780bd2339912e67d57428bbba288a4ad4e120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- 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