Added more PHP modules needed for wordpress
Add the ability to change php.ini config for FPM
Increase default upload size
Minor formatting and alphabetization fixes
Change-Id: Ida40bc2c51f2b6d4bb7fac61316e476ab42fc274
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
index 7238c89..dd8e9b7 100644
--- a/tasks/Debian.yml
+++ b/tasks/Debian.yml
@@ -40,6 +40,7 @@
cache_valid_time: 3600
notify:
- start-php
+ - restart-php # load new packages
- name: Configure PHP-FPM service
lineinfile:
@@ -49,3 +50,12 @@
loop: "{{ php_fpm_config | dict2items }}"
notify:
- restart-php
+
+- name: Configure PHP-FPM php.ini file
+ lineinfile:
+ path: "/etc/php/{{ php_version }}/fpm/php.ini"
+ regexp: "^{{ item.key }}.*$"
+ line: "{{ item.key }} = {{ item.value }}"
+ loop: "{{ php_ini_config | dict2items }}"
+ notify:
+ - restart-php