add zend extention management

This commit is contained in:
vincent 2020-11-07 17:10:12 +01:00
parent 935805a96c
commit 8991fd54cf
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,4 @@
php_extention_enable: [] php_extention_enable: []
php_memory_limit: 256M php_memory_limit: 256M
PHP_ReadWritePaths: [] PHP_ReadWritePaths: []
php_zend_extention_enable: []

View File

@ -14,15 +14,24 @@
service: name=php-fpm enabled=yes service: name=php-fpm enabled=yes
become: yes become: yes
- name: enable php extetion - name: enable php extention
become: true become: true
replace: lineinfile:
dest: /etc/php/php.ini dest: /etc/php/php.ini
regexp: "^;extension={{item}}$" regexp: "^;extension={{item}}$"
replace: "extension={{item}}" line: "extension={{item}}"
with_items: "{{php_extention_enable}}" with_items: "{{php_extention_enable}}"
notify: reload_php_fpm notify: reload_php_fpm
- name: enable php zend_extention
become: true
lineinfile:
dest: /etc/php/php.ini
regexp: "^;zend_extention={{item}}$"
line: "zend_extention={{item}}"
with_items: "{{php_zend_extention_enable}}"
notify: reload_php_fpm
- name: Set PHP memory limit - name: Set PHP memory limit
become: true become: true
lineinfile: lineinfile: