ansible-php/tasks/fpm.yml

15 lines
466 B
YAML

---
- 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 }}'
with_items: php_ini
notify: restart php-fpm
- 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