This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/mastodon/tasks/main.yml
2023-05-02 17:13:13 +02:00

20 lines
442 B
YAML

- name: Create working directory
file:
path: /srv/mastodon
state: directory
- name: Copy env file
copy:
src: "{{ role_path }}/mastodon.env"
dest: /srv/mastodon/mastodon.env
- name: Copy Docker stack file
template:
src: "{{ role_path }}/docker-stack.yml.j2"
dest: /srv/mastodon/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: mastodon
compose:
- /srv/mastodon/docker-stack.yml