prometheus/server/tasks/main.yaml
changeset 197 1cc658995a70
parent 189 3bd85e235e76
child 223 de03976c2df1
equal deleted inserted replaced
196:e07868e39791 197:1cc658995a70
     2 
     2 
     3 - name: add grafana apt key
     3 - name: add grafana apt key
     4   become: yes
     4   become: yes
     5   get_url:
     5   get_url:
     6     url: "https://packages.grafana.com/gpg.key"
     6     url: "https://packages.grafana.com/gpg.key"
     7     dest: /etc/apt/trusted.gpg.d/grafana.asc
     7     dest: "/etc/apt/trusted.gpg.d/grafana.asc"
     8     mode: "0644"
     8     mode: "0644"
     9 
     9 
    10 - name: add grafana apt repo
    10 - name: add grafana apt repo
    11   become: yes
    11   become: yes
    12   apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main"
    12   apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/grafana.asc] https://packages.grafana.com/oss/deb stable main"
    13 
    13 
    14 - name: install prometheus and grafana
    14 - name: install prometheus and grafana
    15   become: yes
    15   become: yes
    16   apt: name="{{prometheus_server_apt_packages}}" state="latest"
    16   apt: name="{{prometheus_server_apt_packages}}" state="latest"
    17 
    17