forked from ISTI-ansible-roles/ansible-roles
Merge pull request 'Drupal: Fix some obsoleted parts, ad php-fpm as dependency, fix the php packages list.' (#164) from adellam/ansible-roles:master into master
This commit is contained in:
commit
c8ee5a74a4
|
@ -2,8 +2,11 @@
|
||||||
drupal_install: False
|
drupal_install: False
|
||||||
drupal_install_deb: False
|
drupal_install_deb: False
|
||||||
drupal_maintenance_cron: False
|
drupal_maintenance_cron: False
|
||||||
drupal_major: 8
|
drupal_major_ver: 8
|
||||||
drupal_version: '{{ drupal_major_ver }}.1.7'
|
drupal_major: '{{ drupal_major_ver }}'
|
||||||
|
drupal_minor_ver: 8
|
||||||
|
drupal_point_ver: 3
|
||||||
|
drupal_version: '{{ drupal_major_ver }}.{{ drupal_minor_ver }}.{{ drupal_point_ver }}'
|
||||||
drupal_dist_name: 'drupal-{{ drupal_version }}'
|
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 }}'
|
||||||
|
@ -19,6 +22,7 @@ http_group: '{{ http_user }}'
|
||||||
# - 'php{{ php_version }}-mbstring'
|
# - 'php{{ php_version }}-mbstring'
|
||||||
# - php-ssh2
|
# - php-ssh2
|
||||||
drupal_php_prereq:
|
drupal_php_prereq:
|
||||||
|
- 'php{{ php_version }}-fpm'
|
||||||
- 'php{{ php_version }}-json'
|
- 'php{{ php_version }}-json'
|
||||||
- 'php{{ php_version }}-intl'
|
- 'php{{ php_version }}-intl'
|
||||||
- 'php{{ php_version }}-cli'
|
- 'php{{ php_version }}-cli'
|
||||||
|
@ -26,10 +30,11 @@ drupal_php_prereq:
|
||||||
- 'php{{ php_version }}-gd'
|
- 'php{{ php_version }}-gd'
|
||||||
- 'php{{ php_version }}-json'
|
- 'php{{ php_version }}-json'
|
||||||
- 'php{{ php_version }}-curl'
|
- 'php{{ php_version }}-curl'
|
||||||
- php-apc
|
- 'php{{ php_version }}-mbstring'
|
||||||
|
- php-apcu
|
||||||
- php-pear
|
- php-pear
|
||||||
- php-date
|
- php-date
|
||||||
- php-xml-serializer
|
- php-memcached
|
||||||
- imagemagick
|
- imagemagick
|
||||||
|
|
||||||
drupal_install_drush: False
|
drupal_install_drush: False
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
dependencies:
|
dependencies:
|
||||||
|
- { role: '../../library/roles/php-fpm' }
|
||||||
- { role: '../../library/roles/composer', when: drupal_install_drush }
|
- { role: '../../library/roles/composer', when: drupal_install_drush }
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
tags: ['drupal', 'drush', 'global_drush' ]
|
tags: ['drupal', 'drush', 'global_drush' ]
|
||||||
|
|
||||||
- name: Install drush locally as part of drupal
|
- name: Install drush locally as part of drupal
|
||||||
become: True
|
#become: True
|
||||||
become_user: '{{ item.user }}'
|
#become_user: '{{ item.user }}'
|
||||||
composer: command=require arguments=drush/drush:{{ drupal_drush_version }} prefer_dist=yes working_dir={{ item.doc_root }}
|
composer: command=require arguments=drush/drush:{{ drupal_drush_version }} prefer_dist=yes working_dir={{ item.doc_root }}
|
||||||
with_items: '{{ phpfpm_pools }}'
|
with_items: '{{ phpfpm_pools }}'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
php_fpm_packages: '{{ drupal_php_prereq }}'
|
Loading…
Reference in New Issue