added support for php ini values and custom vhost config

This commit is contained in:
nd 2019-04-27 21:47:33 +02:00
parent a7a49f80d3
commit 9289015473
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 26 additions and 4 deletions

View file

@ -49,10 +49,17 @@
notify:
- restart php-fpm
- set_fact:
phpinidefault:
post_max_size: 64M
upload_max_filesize: 64M
- set_fact:
phpini: "{{ phpinidefault|combine( {} if (nginx.php == True) else nginx.php.ini|d({}) ) }}"
- name: copy php-fpm php.ini
copy:
template:
dest: /etc/php/7.0/fpm/php.ini
src: php-fpm/php.ini
src: php-fpm/php.ini.j2
mode: 0644
notify:
- restart php-fpm