forked from ISTI-ansible-roles/ansible-roles
library/roles/php-fpm: Fix the global variables management when we install PHP from the PPA.
dnet-efg/group_vars/efg_portal_dev/main.yml: Set some PHP globals.
This commit is contained in:
parent
62766b201d
commit
0d74a08746
|
@ -10,6 +10,7 @@ php_ppa: ppa:ondrej/php
|
||||||
php_version: 5
|
php_version: 5
|
||||||
|
|
||||||
phpfpm_base_dir: '/etc/php{{ php_version }}/fpm'
|
phpfpm_base_dir: '/etc/php{{ php_version }}/fpm'
|
||||||
|
phpfpm_cli_dir: '/etc/php{{ php_version }}/cli'
|
||||||
# Change to when using the PPA
|
# Change to when using the PPA
|
||||||
# phpfpm_base_dir: '/etc/php/{{ php_version }}/fpm'
|
# phpfpm_base_dir: '/etc/php/{{ php_version }}/fpm'
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,8 @@
|
||||||
tags: [ 'php', 'php_ini' ]
|
tags: [ 'php', 'php_ini' ]
|
||||||
|
|
||||||
- name: Modify the global php cli settings
|
- name: Modify the global php cli settings
|
||||||
ini_file: dest=/etc/php{{ php_version}}/cli/php.ini section={{ item.section | default('PHP') }} option={{ item.option }} value={{ item.value }} backup=yes state={{ item.state | default('present') }}
|
ini_file: dest={{ phpfpm_cli_dir }}/php.ini section={{ item.section | default('PHP') }} option={{ item.option }} value={{ item.value }} backup=yes state={{ item.state | default('present') }}
|
||||||
with_items: '{{ php_global_settings | default([]) }}'
|
with_items: '{{ php_global_settings | default([]) }}'
|
||||||
notify: Reload php-fpm
|
|
||||||
tags: [ 'php', 'php_ini' ]
|
tags: [ 'php', 'php_ini' ]
|
||||||
|
|
||||||
- name: Activate the memcache sessions support and redundancy if needed
|
- name: Activate the memcache sessions support and redundancy if needed
|
||||||
|
|
Loading…
Reference in New Issue