ansible/roles/docker/tasks/dawarich.yml
2025-01-04 09:16:27 -07:00

19 lines
444 B
YAML

- name: make dawarich directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/dawarich
- name: Template out the compose file
ansible.builtin.template:
src: dawarich-compose.yml.j2
dest: /opt/stacks/dawarich/compose.yml
owner: root
mode: 644
- name: deploy dawarich stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/dawarich
files:
- compose.yml