Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates

This commit is contained in:
boris committed 2026-07-08 10:29:51 +01:00
commit 53695f4fff
411 files changed
+7817

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
---
- name: Install monitoring packages
ansible.builtin.apt:
name: "{{ monitoring_packages }}"
state: present
update_cache: true
when: monitoring_agent != "none"
tags: [monitoring]
- name: Deploy monitoring configuration files
ansible.builtin.template:
src: "{{ item.template }}"
dest: "{{ item.dest }}"
owner: "{{ item.owner | default('root') }}"
group: "{{ item.group | default('root') }}"
mode: "{{ item.mode | default('0644') }}"
loop: "{{ monitoring_config_files }}"
when: monitoring_agent != "none"
notify: restart monitoring services
tags: [monitoring, config]
- name: Enable monitoring services
ansible.builtin.service:
name: "{{ item }}"
enabled: true
state: started
loop: "{{ monitoring_services }}"
when: monitoring_agent != "none"
tags: [monitoring, services]