merged nginx-php role into this one
This commit is contained in:
parent
6d087a3938
commit
c1113aea9b
8 changed files with 2417 additions and 0 deletions
|
|
@ -89,3 +89,6 @@
|
|||
state: link
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
- include_tasks: php-fpm.yml
|
||||
when: nginx.php
|
||||
|
|
|
|||
58
tasks/php-fpm.yml
Normal file
58
tasks/php-fpm.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
---
|
||||
- name: install php and extensions
|
||||
apt:
|
||||
pkg:
|
||||
- php
|
||||
- php-fpm
|
||||
- php-common # ctype, iconv, json, libxml, simplexml, zip, zlib, curl, fileinfo, bz2, openssl, ftp, exif, gmp
|
||||
- php-ldap
|
||||
- php-gd
|
||||
- php-imagick
|
||||
- php-xml
|
||||
- php-mbstring
|
||||
- php-opcache
|
||||
- php-imap
|
||||
- php-intl # intl
|
||||
- php-mcrypt
|
||||
- php-smbclient
|
||||
- php-net-ftp
|
||||
- php-exif
|
||||
- php-gmp
|
||||
# database pdos
|
||||
- php-pdo-sqlite
|
||||
- php-pdo-pgsql
|
||||
- php-pdo-mysql
|
||||
- php-apcu
|
||||
notify:
|
||||
- restart nginx
|
||||
- restart php-fpm
|
||||
|
||||
- name: copy nginx php snippet
|
||||
copy:
|
||||
src: php-fpm/snippet-php
|
||||
dest: /etc/nginx/snippets/php
|
||||
notify:
|
||||
- reload nginx
|
||||
|
||||
- name: copy nginx php upstream
|
||||
copy:
|
||||
src: php-fpm/conf-php
|
||||
dest: /etc/nginx/conf.d/php.conf
|
||||
notify:
|
||||
- reload nginx
|
||||
|
||||
- name: copy php-fpm config
|
||||
copy:
|
||||
dest: /etc/php/7.0/fpm/pool.d/www.conf
|
||||
src: php-fpm/www.conf
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart php-fpm
|
||||
|
||||
- name: copy php-fpm php.ini
|
||||
copy:
|
||||
dest: /etc/php/7.0/fpm/php.ini
|
||||
src: php-fpm/php.ini
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart php-fpm
|
||||
Loading…
Add table
Add a link
Reference in a new issue