22 lines
596 B
YAML
22 lines
596 B
YAML
- name: Create Mastodon app directory
|
|
file:
|
|
path: /apps/mastodon
|
|
state: directory
|
|
- name: Copy .env.production
|
|
copy:
|
|
src: "{{ role_path }}/files/.env.production"
|
|
dest: /apps/mastodon/.env.production
|
|
- name: Copy Docker Compose script
|
|
template:
|
|
src: "{{ role_path }}/templates/docker-compose.yml.j2"
|
|
dest: /apps/mastodon/docker-compose.yml
|
|
- name: Create Mastodon data directory
|
|
file:
|
|
path: /data/mastodon
|
|
state: directory
|
|
mode: 0777
|
|
- name: Start Docker Compose
|
|
docker_compose:
|
|
project_src: /apps/mastodon
|
|
pull: true
|
|
remove_orphans: true
|