summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/base/tasks/main.yml
blob: c3a04bd9a4e34f64b426fe1c3d2085992fc16ef0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: create main configuration directories
  loop:
  - exporters-available
  - exporters-enabled
  file:
    path: "/etc/prometheus-exporter/{{ item }}"
    state: directory

- name: install nginx vhost
  vars:
    nginx_vhost:
      name: prometheus-exporter
      content: "{{ lookup('template', 'nginx-vhost.conf.j2') }}"
  include_role:
    name: nginx/vhost