mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
PHP works
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
6
tasks/upstream.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user