rename web
This commit is contained in:
19
web/roles/php/tasks/main.yml
Normal file
19
web/roles/php/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user