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
Pim Kunis ace3a9ac83 fix container names
fix bug in mastodon environmental file path
2023-01-09 23:58:40 +01:00

22 lines
618 B
YAML

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