mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-14 10:25:24 +01:00
21 lines
458 B
YAML
21 lines
458 B
YAML
---
|
|
- name: Ensure configuration directories exist.
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
follow: true
|
|
with_flattened:
|
|
- "{{ php_conf_paths }}"
|
|
- "{{ php_extension_conf_paths }}"
|
|
|
|
- name: Place PHP configuration file in place.
|
|
template:
|
|
src: php.ini.j2
|
|
dest: "{{ item }}/php.ini"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
with_items: "{{ php_conf_paths }}"
|
|
notify: restart webserver
|
|
when: php_use_managed_ini
|