1
0
Fork 0
mirror of https://github.com/Luzifer/docker-php5-nginx.git synced 2024-11-08 06:00:09 +00:00
docker-php5-nginx/tasks/nginx.yml
Soenke Ruempler 5c92caf2d5 Use PHP FPM instead of ancient Spawn-FCGI
Use the default FPM config, except the max_children, which is set to 10
as it was with spawn-fcgi.
2015-07-07 22:47:02 +02:00

31 lines
803 B
YAML

---
- name: ensure required packages are installed
apt: name={{ item }} update_cache=yes
with_items:
- nginx
- php5-curl
- php5-fpm
notify:
- restart php5-fpm
- restart nginx
- name: Remove default nginx configuration
file: path=/etc/nginx/sites-enabled/default state=absent
- name: Configure nginx
copy: src=files/nginx.conf dest=/etc/nginx/sites-enabled/phpframework_app
notify:
- restart nginx
- name: Create includes directory
file: path=/etc/nginx/includes state=directory
- name: Configure fastcgi params
copy: src=files/fastcgi_params.inc dest=/etc/nginx/includes/fastcgi_params.inc
notify:
- restart nginx
- name: fpm config
action: template src='templates/fpm-pool.conf' dest='/etc/php5/fpm/pool.d/www.conf'
notify:
- restart php5-fpm