2014-11-11 18:34:06 +01:00
|
|
|
---
|
|
|
|
- name: Ensure configuration directories exist.
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
2015-04-14 20:29:26 +02:00
|
|
|
follow: true
|
2016-03-04 03:24:26 +01:00
|
|
|
with_flattened:
|
|
|
|
- "{{ php_conf_paths }}"
|
|
|
|
- "{{ php_extension_conf_paths }}"
|
2014-11-11 18:34:06 +01:00
|
|
|
|
|
|
|
- name: Place PHP configuration file in place.
|
|
|
|
template:
|
|
|
|
src: php.ini.j2
|
2016-03-04 03:24:26 +01:00
|
|
|
dest: "{{ item }}/php.ini"
|
2014-11-11 18:34:06 +01:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2016-03-04 03:24:26 +01:00
|
|
|
with_items: "{{ php_conf_paths }}"
|
2014-11-11 18:34:06 +01:00
|
|
|
notify: restart webserver
|
|
|
|
when: php_use_managed_ini
|