add mastodon stack

This commit is contained in:
Pim Kunis 2023-05-02 17:13:13 +02:00
parent 2b31d94f1d
commit f6a6afc70a
6 changed files with 286 additions and 0 deletions

View file

@ -0,0 +1,20 @@
- 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