1
0
Fork 0
mirror of https://github.com/Luzifer/docker-php5-nginx.git synced 2024-11-08 14:10:06 +00:00
docker-php5-nginx/tasks/nginx.yml

32 lines
803 B
YAML
Raw Permalink Normal View History

2014-09-06 22:27:17 +00:00
---
- name: ensure required packages are installed
apt: name={{ item }} update_cache=yes
with_items:
- nginx
- php5-curl
- php5-fpm
2014-09-06 22:27:17 +00:00
notify:
- restart php5-fpm
2014-09-06 22:27:17 +00:00
- 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'
2014-09-06 22:27:17 +00:00
notify:
- restart php5-fpm