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

32 lines
660 B
YAML
Raw Normal View History

2017-04-24 12:22:51 +00:00
---
- name: Create release directory
2017-04-24 16:09:26 +00:00
file: path={{ release_dir }} state=directory owner=ansible group=ansible
become: true
2017-04-24 12:22:51 +00:00
2020-05-16 13:12:07 +00:00
- name: Ensure Make is installed
become: true
apt:
pkg: make
2017-04-24 12:22:51 +00:00
- name: Checkout code branch from git
git:
repo: 'https://github.com/datalets/public-health-ch'
dest: "{{ release_dir }}"
2017-04-24 12:56:57 +00:00
force: yes
2017-04-24 12:22:51 +00:00
- name: Copy Docker site configuration
template:
src: docker-compose.j2
dest: "{{ release_dir }}/docker-compose.yml"
2020-05-16 13:12:07 +00:00
- name: Deploy Wagtail site on Docker
shell: make build
args:
chdir: "{{ release_dir }}"
- name: Set up Wagtail site
2017-04-25 14:00:32 +00:00
shell: make setup
args:
chdir: "{{ release_dir }}"