logging stack and firewall
This commit is contained in:
@@ -25,18 +25,30 @@
|
||||
name: prometheus-node-exporter
|
||||
state: present
|
||||
|
||||
- name: Create prometheus config directory
|
||||
- name: Create monitoring config directory
|
||||
ansible.builtin.file:
|
||||
path: /opt/monitoring
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Copy config
|
||||
- name: Copy prometheus config
|
||||
ansible.builtin.copy:
|
||||
src: prometheus_config.yml
|
||||
dest: /opt/monitoring/prometheus.yml
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy loki config
|
||||
ansible.builtin.template:
|
||||
src: local-config.yml.j2
|
||||
dest: /opt/monitoring/local-config.yml
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy alloy config
|
||||
ansible.builtin.template:
|
||||
src: config.alloy.j2
|
||||
dest: /opt/monitoring/config.alloy
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy compose
|
||||
ansible.builtin.template:
|
||||
src: docker-compose.yml.j2
|
||||
|
||||
Reference in New Issue
Block a user