Add ansible stuff
This commit is contained in:
parent
bbb4a9c666
commit
23fcf88ad9
21 changed files with 319 additions and 0 deletions
12
tools/ansible/deploy/after-symlink-shared.yml
Normal file
12
tools/ansible/deploy/after-symlink-shared.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Install Drupal
|
||||
command: |
|
||||
{{ release_drush_path }} site-install config_installer -y
|
||||
--account-pass=admin123
|
||||
args:
|
||||
chdir: '{{ release_drupal_path }}'
|
||||
|
||||
- name: Rebuild cache
|
||||
command: '{{ release_drush_path }} cache-rebuild'
|
||||
args:
|
||||
chdir: '{{ release_drupal_path }}'
|
22
tools/ansible/deploy/after-symlink.yml
Normal file
22
tools/ansible/deploy/after-symlink.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: Update directory permissions
|
||||
file:
|
||||
path: '{{ item.path }}'
|
||||
mode: '{{ item.mode }}'
|
||||
state: directory
|
||||
owner: vagrant
|
||||
group: www-data
|
||||
recurse: true
|
||||
loop:
|
||||
- path: '{{ release_drupal_path }}'
|
||||
mode: u=rwX,g=rX,o=
|
||||
- path: '{{ ansistrano_shared_path }}/{{ project_web_root }}/sites/default/files'
|
||||
mode: ug=rwX,o=
|
||||
|
||||
- name: Update file permissions
|
||||
file:
|
||||
path: '{{ release_drupal_path }}/sites/default/settings.php'
|
||||
mode: ug=r,o=
|
||||
state: file
|
||||
owner: vagrant
|
||||
group: www-data
|
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