parameterize directories
This commit is contained in:
parent
5bf6d7acbc
commit
cd17ed372c
21 changed files with 88 additions and 66 deletions
|
@ -1,22 +1,22 @@
|
|||
- name: Create Mastodon app directory
|
||||
file:
|
||||
path: /srv/mastodon
|
||||
path: "{{ service_dir }}"
|
||||
state: directory
|
||||
- name: Copy .env.production
|
||||
copy:
|
||||
src: "{{ role_path }}/files/.env.production"
|
||||
dest: /srv/mastodon/.env.production
|
||||
dest: "{{ service_dir }}.env.production"
|
||||
- name: Copy Docker Compose script
|
||||
template:
|
||||
src: "{{ role_path }}/templates/docker-compose.yml.j2"
|
||||
dest: /srv/mastodon/docker-compose.yml
|
||||
dest: "{{ service_dir }}/docker-compose.yml"
|
||||
- name: Create Mastodon data directory
|
||||
file:
|
||||
path: /data/mastodon
|
||||
path: "{{ data_dir }}"
|
||||
state: directory
|
||||
mode: 0777
|
||||
- name: Start Docker Compose
|
||||
docker_compose:
|
||||
project_src: /srv/mastodon
|
||||
project_src: "{{ service_dir }}"
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
|
|
Reference in a new issue