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