Add Ansible playbook for deployments
This commit is contained in:
parent
4299ca3ae7
commit
f2e458ca13
14 changed files with 293 additions and 12 deletions
10
tools/ansible/deploy/after-symlink-shared.yml
Normal file
10
tools/ansible/deploy/after-symlink-shared.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- name: Setup directory permissions for files directories
|
||||
become: true
|
||||
file:
|
||||
path: '{{ ansistrano_shared_path }}/{{ project_web_dir }}/sites/default/files'
|
||||
state: directory
|
||||
owner: www-data
|
||||
group: root
|
||||
mode: u=rwx,g=rw,o=
|
||||
recurse: true
|
9
tools/ansible/deploy/after-update-code.yml
Normal file
9
tools/ansible/deploy/after-update-code.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- name: Install Composer dependencies
|
||||
composer:
|
||||
command: install
|
||||
working_dir: '{{ ansistrano_release_path.stdout }}'
|
||||
|
||||
- name: Generate settings.php file
|
||||
include_role:
|
||||
name: './roles/drupal-settings'
|
Loading…
Add table
Add a link
Reference in a new issue