ansible-role-php/tasks/configure.yml

22 lines
521 B
YAML
Raw Normal View History

---
- name: Ensure configuration directories exist.
2023-03-30 16:41:34 +02:00
ansible.builtin.file:
path: "{{ item }}"
state: directory
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 }}"
- name: Place PHP configuration file in place.
2023-03-30 16:41:34 +02:00
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