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

26 lines
653 B
YAML
Raw Normal View History

2017-04-24 12:22:51 +00:00
---
2021-02-20 14:00:04 +00:00
- name: Ensure Make is installed
2020-05-16 19:15:23 +00:00
become: true
2021-02-20 14:00:04 +00:00
apt:
pkg: make
2020-05-16 19:15:23 +00:00
2021-02-20 14:00:04 +00:00
- name: Create release directory
file: path={{ release_dir }} state=directory owner=ansible group=ansible mode=u=rwX,g=rX,o=rX
2020-05-16 19:15:23 +00:00
become: true
2017-04-24 12:22:51 +00:00
- name: Checkout code branch from git
git:
dest: "{{ release_dir }}"
2020-05-16 13:43:10 +00:00
repo: "{{ gitrepo }}"
version: "{{ gitversion }}"
2021-02-20 14:00:04 +00:00
force: true
2017-04-24 12:22:51 +00:00
2021-02-20 14:00:04 +00:00
- name: Create media directory
file: path={{ release_dir }}/media state=directory owner=ansible group=www-data
2020-05-16 13:43:10 +00:00
become: true
2021-02-20 14:00:04 +00:00
- name: Set media directory permissions
file: dest={{ release_dir }}/media owner=ansible group=www-data mode=u=rwX,g=rX,o=rX recurse=yes
become: true