43 lines
886 B
YAML
43 lines
886 B
YAML
---
|
|
|
|
- name: Create prometheus dirs
|
|
file:
|
|
path: "{{ item }}"
|
|
owner: 1000
|
|
group: 1000
|
|
mode: '777'
|
|
state: directory
|
|
loop:
|
|
- "{{ prm_config }}"
|
|
- "{{ prm_data}}"
|
|
|
|
- name: Place prometheus config
|
|
template:
|
|
owner: 1000
|
|
mode: '777'
|
|
src: "templates/aya01/prometheus/prometheus.yml"
|
|
dest: "{{ prm_config }}/prometheus.yml"
|
|
|
|
- name: Create prometheus exporter dir
|
|
file:
|
|
path: "{{ exporter_dir }}"
|
|
owner: 1000
|
|
group: 1000
|
|
mode: '755'
|
|
state: directory
|
|
|
|
- name: Create mikrotik exporters config dir
|
|
file:
|
|
path: "{{ e_mikrotik_config }}"
|
|
owner: 1000
|
|
group: 1000
|
|
mode: '755'
|
|
state: directory
|
|
|
|
- name: Place mikrotik exporter config
|
|
template:
|
|
owner: 1000
|
|
mode: '400'
|
|
src: "templates/aya01/prometheus/exporter/mikrotik/config/config.yml"
|
|
dest: "{{ e_mikrotik_config }}/config.yml"
|