PHP works

This commit is contained in:
Emilien Mantel
2015-07-15 16:26:27 +02:00
parent 1d025d1f35
commit 721606056d
6 changed files with 24 additions and 41 deletions

View File

@@ -23,8 +23,8 @@
with_fileglob: '../templates/etc/nginx/helpers/*.j2'
notify: reload nginx
- name: INCLUDE | PHP configuration
include: php.yml
- name: INCLUDE | Upstream configuration
include: upstream.yml
when: nginx_php
- name: INCLUDE | Vhosts configuration

View File

@@ -1,10 +0,0 @@
---
- name: INCLUDE_VARS | Include PHP defaults vars from PHP role if unspecified
include_vars: ../../php/defaults/main.yml
when: php_fpm_socket is undefined
- name: TEMPLATE | Deploy PHP upstream (UNIX sockets) to Nginx
template: src=etc/nginx/upstream/php.conf.j2 dest=/etc/nginx/conf.d/php.conf
notify: reload nginx

6
tasks/upstream.yml Normal file
View File

@@ -0,0 +1,6 @@
---
- name: TEMPLATE | Deploy PHP upstream to Nginx
template: src=etc/nginx/upstream/php.conf.j2 dest=/etc/nginx/conf.d/php.conf
notify: reload nginx