prometheus/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 09 Feb 2020 20:56:26 -0600
changeset 6 3b1f18f6a5a4
parent 5 4f014cdac0b1
child 15 6d7db9bae6c2
permissions -rw-r--r--
Updated prometheus roles. WIP psql, nginx exporters.

---

- name: install prometheus node exporter
  become: yes
  apt: name="prometheus-node-exporter"

#   # Nginx
# - name: check if running nginx
#   stat: path="/etc/nginx/"
#   register: stat_nginx_conf

# - name: install prometheus-nginx-exporter
#   become: yes
#   apt: name="prometheus-nginx-exporter"
#   when: stat_nginx_conf.stat.exists

#   # PostgreSQL
# - name: check if running postgresql
#   stat: path="/etc/postgresql/"
#   register: stat_postgresql_conf

# - name: install prometheus-postgresql-exporter
#   become: yes
#   apt: name="prometheus-postgres-exporter"
#   when: stat_postgresql_conf.stat.exists