ansible-php/tasks/fpm.yml

17 lines
494 B
YAML
Raw Normal View History

2015-07-23 15:40:33 +07:00
---
- name: APT | Install PHP-FPM
apt: pkg=php5-fpm state=latest
- name: LINEINFILE | PHP configuration
lineinfile: dest=/etc/php5/fpm/php.ini regexp='^;?{{ item.key }}' line='{{ item.key }} = {{ item.value }}'
2015-08-28 14:48:25 +07:00
with_flattened:
- 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
template: src=etc/php5/fpm/pool.d/pool.conf.j2 dest=/etc/php5/fpm/pool.d/{{ item.pool_name }}.conf
with_items: php_fpm_poold
notify: restart php-fpm