public-health-ch/ansible/roles/wagtail/tasks/setup.yaml

27 lines
540 B
YAML
Raw Normal View History

2021-02-20 14:00:04 +00:00
---
- name: Copy Docker site configuration
template:
src: docker-compose.j2
dest: "{{ release_dir }}/docker-compose.yml"
- name: Deploy Wagtail site on Docker
shell: make build-cached
args:
chdir: "{{ release_dir }}"
- name: Start Wagtail site
shell: make run
args:
chdir: "{{ release_dir }}"
- name: Prepare compress frontend
shell: make compress
args:
chdir: "{{ release_dir }}"
- name: Finish setup of Wagtail site
shell: make setup EMAIL={{ email_admin }}
args:
chdir: "{{ release_dir }}"