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:
Andrea Dell'Amico 2015-10-16 13:07:35 +02:00
parent b7ec847f5d
commit 9db9f9d708
1 changed files with 22 additions and 0 deletions

View File

@ -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