ansible/roles/docker/tasks/gotosocial.yml
2024-09-30 16:08:21 -06:00

20 lines
492 B
YAML

- name: make gotosocial directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/gotosocial
- /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