mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
22 lines
521 B
YAML
22 lines
521 B
YAML
---
|
|
- name: Ensure configuration directories exist.
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
follow: true
|
|
mode: 0755
|
|
with_items:
|
|
- "{{ php_conf_paths | flatten }}"
|
|
- "{{ php_extension_conf_paths | flatten }}"
|
|
|
|
- name: Place PHP configuration file in place.
|
|
ansible.builtin.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
|