20 lines
442 B
YAML
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
|