prometheus/server/tasks/main.yaml
changeset 2 2556522a2a45
parent 1 fd351734f007
child 5 4f014cdac0b1
equal deleted inserted replaced
1:fd351734f007 2:2556522a2a45
       
     1 ---
       
     2 
       
     3 - name: add grafana apt key
       
     4   become: yes
       
     5   apt_key: url="https://packages.grafana.com/gpg.key"
       
     6 
       
     7 - name: add grafana apt repo
       
     8   become: yes
       
     9   apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main"
       
    10 
       
    11 - name: install prometheus and grafana
       
    12   become: yes
       
    13   apt: name="{{item}}" state="latest"
       
    14   with_items:
       
    15     - "prometheus"
       
    16     - "grafana"
       
    17 
       
    18 # /etc/prometheus/prometheus.yml
       
    19 # /etc/grafana/grafana.ini