ansible/roles/docker/tasks/gotosocial.yml

20 lines
492 B
YAML
Raw Permalink Normal View History

- name: make gotosocial directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/gotosocial
2024-10-01 00:08:21 +02:00
- /opt/stacks/gotosocial/backup
- name: Template out the compose file
ansible.builtin.template:
src: gotosocial-compose.yml.j2
dest: /opt/stacks/gotosocial/compose.yml
owner: root
mode: 644
- name: deploy gotosocial stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/gotosocial
files:
- compose.yml