library/roles/drupal-org/tasks/main.yml: Support for old drupal versions.

dnet-efg/group_vars/efg_portal_dev: Install drupal 6.
This commit is contained in:
Andrea Dell'Amico 2016-02-09 18:58:13 +01:00
parent d4767c4578
commit 5d8970f347
2 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,8 @@
--- ---
drupal_install_deb: False drupal_install_deb: False
drupal_dist_name: drupal-8.0.0-rc1 drupal_major: 8
drupal_version: '{{ drupal_major_ver }}.0.3'
drupal_dist_name: 'drupal-{{ drupal_version }}'
drupal_dist_file: '{{ drupal_dist_name }}.tar.gz' drupal_dist_file: '{{ drupal_dist_name }}.tar.gz'
drupal_tar_url: 'http://ftp.drupal.org/files/projects/{{ drupal_dist_file }}' drupal_tar_url: 'http://ftp.drupal.org/files/projects/{{ drupal_dist_file }}'
drupal_download_dir: /srv/drupal drupal_download_dir: /srv/drupal

View File

@ -37,23 +37,27 @@
tags: drupal tags: drupal
- name: Create the default settings file - 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 command: cp {{ drupal_install_dir }}/{{ item.virthost }}/sites/default/default.settings.php {{ drupal_install_dir }}/{{ item.virthost }}sites/default/settings.php
args: args:
creates: '{{ drupal_install_dir }}/{{ item.virthost }}sites/default/settings.php' creates: '{{ drupal_install_dir }}/{{ item.virthost }}/sites/default/settings.php'
with_items: phpfpm_pools with_items: phpfpm_pools
when: ( unpack_drupal | changed ) when:
- ( unpack_drupal | changed )
- '{{ drupal_major_ver }} >= 8'
tags: drupal tags: drupal
- name: Create the default services file - 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 command: cp {{ drupal_install_dir }}/{{ item.virthost }}/sites/default/default.services.yml {{ drupal_install_dir }}/{{ item.virthost }}sites/default/services.yml
args: args:
creates: '{{ drupal_install_dir }}/{{ item.virthost }}sites/default/services.yml' creates: '{{ drupal_install_dir }}/{{ item.virthost }}/sites/default/services.yml'
with_items: phpfpm_pools with_items: phpfpm_pools
when: ( unpack_drupal | changed ) when:
- ( unpack_drupal | changed )
- '{{ drupal_major_ver }} >= 8'
tags: drupal tags: drupal
- name: Create the files directory - name: Create the files directory
file: path={{ drupal_install_dir }}/{{ item.virthost }}sites/default/files owner={{ item.user }} group={{ item.group }} mode=0770 file: dest={{ drupal_install_dir }}/{{ item.virthost }}/sites/default/files owner={{ item.user }} group={{ item.group }} mode=0770 state=directory
with_items: phpfpm_pools with_items: phpfpm_pools
when: ( unpack_drupal | changed ) when: ( unpack_drupal | changed )
tags: drupal tags: drupal