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

28 lines
720 B
YAML
Raw Normal View History

2022-12-06 21:20:54 +00:00
- name: Create Mastodon app directory
file:
2023-01-07 19:32:42 +00:00
path: "{{ service_dir }}"
2022-12-06 21:20:54 +00:00
state: directory
- name: Copy .env.production
copy:
src: "{{ role_path }}/files/.env.production"
dest: "{{ service_dir }}/.env.production"
2022-12-06 21:20:54 +00:00
- name: Copy Docker Compose script
template:
src: "{{ role_path }}/templates/docker-compose.yml.j2"
2023-01-07 19:32:42 +00:00
dest: "{{ service_dir }}/docker-compose.yml"
- name: Create data directory
2022-12-06 21:20:54 +00:00
file:
2023-01-07 19:32:42 +00:00
path: "{{ data_dir }}"
2022-12-06 21:20:54 +00:00
state: directory
mode: 0777
- name: Create cache directory
file:
path: "{{ service_dir }}/cache"
state: directory
mode: 0777
2022-12-06 21:20:54 +00:00
- name: Start Docker Compose
docker_compose:
2023-01-07 19:32:42 +00:00
project_src: "{{ service_dir }}"
2022-12-06 21:20:54 +00:00
pull: true
remove_orphans: true