change directory structure
This commit is contained in:
parent
b89713643d
commit
9eb52229f1
83 changed files with 0 additions and 0 deletions
27
ansible/roles/mastodon/tasks/main.yml
Normal file
27
ansible/roles/mastodon/tasks/main.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
- 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 data directory
|
||||
file:
|
||||
path: "{{ data_dir }}"
|
||||
state: directory
|
||||
mode: 0777
|
||||
- name: Create cache directory
|
||||
file:
|
||||
path: "{{ service_dir }}/cache"
|
||||
state: directory
|
||||
mode: 0777
|
||||
- name: Start Docker Compose
|
||||
docker_compose:
|
||||
project_src: "{{ service_dir }}"
|
||||
pull: true
|
||||
remove_orphans: true
|
Reference in a new issue