add mastodon stack
This commit is contained in:
parent
2b31d94f1d
commit
f6a6afc70a
6 changed files with 286 additions and 0 deletions
20
ansible/roles/mastodon/tasks/main.yml
Normal file
20
ansible/roles/mastodon/tasks/main.yml
Normal 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
|
Reference in a new issue