ansible-php/tasks/fpm.yml

22 lines
578 B
YAML
Raw Normal View History

2015-07-23 15:40:33 +07:00
---
- name: APT | Install PHP-FPM
2016-01-22 21:57:29 +07:00
apt: pkg={{ php_fpm_service }} state=latest
2015-07-23 15:40:33 +07:00
- name: LINEINFILE | PHP configuration
2016-01-22 21:57:29 +07:00
lineinfile: >
dest='{{ php_etc_dir }}/fpm/php.ini'
regexp='^;?{{ item.key }}'
line='{{ item.key }} = {{ item.value }}'
2015-08-28 14:48:25 +07:00
with_flattened:
2016-03-06 21:36:50 +07:00
- "{{ php_ini }}"
- "{{ php_ini_fpm }}"
2015-07-23 15:40:33 +07:00
notify: restart php-fpm
2015-07-23 22:10:15 +07:00
- name: TEMPLATE | Deploy pool configuration
2016-01-22 21:57:29 +07:00
template: >
src=etc/__php__/fpm/pool.d/pool.conf.j2
dest='{{ php_etc_dir }}/fpm/pool.d/{{ item.pool_name }}.conf'
2016-03-06 21:36:50 +07:00
with_items: "{{ php_fpm_poold }}"
2015-07-23 22:10:15 +07:00
notify: restart php-fpm