ansible-php/tasks/fpm.yml

20 lines
566 B
YAML
Raw Normal View History

2015-07-23 15:40:33 +07:00
---
- name: APT | Install PHP-FPM
apt: pkg={{ php_fpm_service }} state=present
2015-07-23 15:40:33 +07:00
- name: LINEINFILE | PHP configuration
2017-11-10 18:19:39 +07:00
lineinfile:
dest: '{{ php_etc_dir }}/fpm/php.ini'
regexp: '^;?{{ item.key }}'
line: '{{ item.key }} = {{ item.value }}'
with_dict: "{{ php_ini | combine(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