21 lines
541 B
YAML
21 lines
541 B
YAML
---
|
|
|
|
- name: APT | Install PHP-FPM
|
|
apt:
|
|
pkg: "{{ php_fpm_service }}"
|
|
|
|
- name: LINEINFILE | PHP configuration
|
|
lineinfile:
|
|
dest: '{{ php_cli_ini }}'
|
|
regexp: '^;?{{ item.key }}'
|
|
line: '{{ item.key }} = {{ item.value }}'
|
|
with_dict: "{{ php_ini | combine(php_ini_fpm) }}"
|
|
notify: restart php-fpm
|
|
|
|
- name: TEMPLATE | Deploy pool configuration
|
|
template:
|
|
src: etc/__php__/fpm/pool.d/pool.conf.j2
|
|
dest: '{{ php_fpm_pool_dir }}/{{ item.pool_name }}.conf'
|
|
with_items: "{{ php_fpm_poold }}"
|
|
notify: restart php-fpm
|