forked from ISTI-ansible-roles/ansible-roles
library/roles/drupal-org/tasks/main.yml: Other basic steps that can be automated before running the drupal web install script.
This commit is contained in:
parent
b7ec847f5d
commit
9db9f9d708
|
@ -36,6 +36,28 @@
|
|||
register: unpack_drupal
|
||||
tags: drupal
|
||||
|
||||
- name: Create the default settings file
|
||||
command: cp {{ drupal_install_dir }}/{{ item.virthost }}sites/default/default.settings.php {{ drupal_install_dir }}/{{ item.virthost }}sites/default/settings.php
|
||||
args:
|
||||
creates: {{ drupal_install_dir }}/{{ item.virthost }}sites/default/settings.php
|
||||
with_items: phpfpm_pools
|
||||
when: ( unpack_drupal | changed )
|
||||
tags: drupal
|
||||
|
||||
- name: Create the default services file
|
||||
command: cp {{ drupal_install_dir }}/{{ item.virthost }}sites/default/default.services.yml {{ drupal_install_dir }}/{{ item.virthost }}sites/default/services.yml
|
||||
args:
|
||||
creates: {{ drupal_install_dir }}/{{ item.virthost }}sites/default/services.yml
|
||||
with_items: phpfpm_pools
|
||||
when: ( unpack_drupal | changed )
|
||||
tags: drupal
|
||||
|
||||
- name: Create the files directory
|
||||
file: path={{ drupal_install_dir }}/{{ item.virthost }}sites/default/files owner={{ item.user }} group={{ item.group }} mode=0770
|
||||
with_items: phpfpm_pools
|
||||
when: ( unpack_drupal | changed )
|
||||
tags: drupal
|
||||
|
||||
- name: Set the correct ownership of the drupal files
|
||||
file: dest={{ drupal_install_dir }}/{{ item.virthost }} owner={{ item.user }} group={{ item.group }} recurse=yes state=directory
|
||||
with_items: phpfpm_pools
|
||||
|
|
Loading…
Reference in New Issue