This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/mastodon/tasks/main.yml

23 lines
596 B
YAML
Raw Normal View History

2022-12-06 21:20:54 +00:00
- 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