Working setup

This commit is contained in:
lif
2025-10-17 14:11:52 +01:00
parent 5b3cd2b8b6
commit 492318c2e1
9 changed files with 49 additions and 173 deletions

View File

@@ -5,10 +5,18 @@
roles:
tasks:
- name: Upload Prometheus configuration
copy:
src: files/prometheus.yml
dest: ~/prometheus.yml
owner: root
group: root
mode: '0644'
- name: Deploy myappstack stack from compose file
community.docker.docker_stack:
name: myappstack
state: present
prune: true
compose:
- "{{ lookup('file', 'files/docker-compose.yml') | from_yaml }}"
- "{{ lookup('file', 'files/docker-compose.yml') | from_yaml }}"