ansible-pet/web/roles/php/tasks/main.yml
2021-06-30 02:30:24 +00:00

19 lines
442 B
YAML

---
- name: Install php-fpm package and deps
apt:
name: ['php-fpm', 'php-imagick', 'php-memcached', 'php-zip', 'php-mysql', 'php-gd', 'php-mbstring', 'php-xml']
state: present
- 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