ansible-pet/1/roles/php/tasks/main.yml

19 lines
442 B
YAML
Raw Normal View History

---
- name: Install php-fpm package and deps
apt:
2021-02-26 18:46:28 +03:00
name: ['php-fpm', 'php-imagick', 'php-memcached', 'php-zip', 'php-mysql', 'php-gd', 'php-mbstring', 'php-xml']
state: present
2021-02-27 14:51:13 +03:00
- name: Configure php-fpm pools
template:
src: files/pool.d/www.conf
dest: /etc/php/7.4/fpm/pool.d/{{ item }}.conf
loop:
- cloud
- wiki
- other
- name: restart php-fpm
service:
name: php7.4-fpm.service
state: restarted