2014-11-11 18:34:06 +01:00
|
|
|
---
|
|
|
|
- name: Ensure configuration directories exist.
|
2023-03-30 16:41:34 +02:00
|
|
|
ansible.builtin.file:
|
2014-11-11 18:34:06 +01:00
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
2015-04-14 20:29:26 +02:00
|
|
|
follow: true
|
2020-08-21 05:34:18 +02:00
|
|
|
mode: 0755
|
2023-03-30 16:41:34 +02:00
|
|
|
with_items:
|
|
|
|
- "{{ php_conf_paths | flatten }}"
|
|
|
|
- "{{ php_extension_conf_paths | flatten }}"
|
2014-11-11 18:34:06 +01:00
|
|
|
|
|
|
|
- name: Place PHP configuration file in place.
|
2023-03-30 16:41:34 +02:00
|
|
|
ansible.builtin.template:
|
2014-11-11 18:34:06 +01:00
|
|
|
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
|