diff options
| author | Luke Hoersten <[email protected]> | 2020-02-09 20:34:46 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-09 20:34:46 -0600 |
| commit | 9ad705198a34f645bc9cc61512965fb9547d8aad (patch) | |
| tree | e0d70bbd2da3ff104332b2a7325ee9f962c69b91 /prometheus/server/tasks/main.yaml | |
| parent | 6066f412e13015034f57e98c6458f05dddd96b40 (diff) | |
Completed prometheus basic roles.
Diffstat (limited to 'prometheus/server/tasks/main.yaml')
| -rw-r--r-- | prometheus/server/tasks/main.yaml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/prometheus/server/tasks/main.yaml b/prometheus/server/tasks/main.yaml index 470c1cc..8235c9b 100644 --- a/prometheus/server/tasks/main.yaml +++ b/prometheus/server/tasks/main.yaml @@ -10,10 +10,13 @@ - name: install prometheus and grafana become: yes - apt: name="{{item}}" state="latest" - with_items: - - "prometheus" - - "grafana" + apt: name="{{prometheus_server_apt_packages}}" state="latest" + +- name: configure prometheus + become: yes + template: + src: "{{prometheus_server_conf}}" + dest: "/etc/prometheus/prometheus.yml" + notify: restart prometheus service -# /etc/prometheus/prometheus.yml # /etc/grafana/grafana.ini |
