2022-12-29 22:45:17 +01:00
|
|
|
---
|
|
|
|
- name: Create prometheus dirs
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
2023-05-11 16:26:49 +02:00
|
|
|
owner: "{{ prometheus_puid }}"
|
|
|
|
group: "{{ prometheus_pgid }}"
|
|
|
|
mode: '755'
|
2022-12-29 22:45:17 +01:00
|
|
|
state: directory
|
|
|
|
loop:
|
2023-05-11 15:09:52 +02:00
|
|
|
- "{{ prometheus_config }}"
|
|
|
|
- "{{ prometheus_data }}"
|
2023-05-11 16:26:49 +02:00
|
|
|
become: true
|
2022-12-29 22:45:17 +01:00
|
|
|
|
|
|
|
- name: Place prometheus config
|
|
|
|
template:
|
2023-05-11 16:26:49 +02:00
|
|
|
owner: "{{ prometheus_puid }}"
|
|
|
|
group: "{{ prometheus_pgid}}"
|
2023-05-11 15:09:52 +02:00
|
|
|
src: "templates/aya01/prometheus/prometheus.yml.j2"
|
|
|
|
dest: "{{ prometheus_config }}/prometheus.yml"
|
2023-05-11 16:26:49 +02:00
|
|
|
mode: '644'
|
|
|
|
become: true
|