ansible/roles/docker/tasks/postiz.yml

19 lines
432 B
YAML

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