Fixed PID

pull/2/head
Emilien Mantel 2015-07-29 23:57:54 +02:00
parent 4bfca1652c
commit 084a6f283b
3 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,6 @@ Socket:
- `nginx_user` - `nginx_user`
- `nginx_worker_processes` - `nginx_worker_processes`
- `nginx_pid`
- `nginx_events`: key/value in events block - `nginx_events`: key/value in events block
- `nginx_http`: key/value in http block - `nginx_http`: key/value in http block

View File

@ -36,7 +36,6 @@ nginx_php_sockets:
# #
nginx_user: 'www-data' nginx_user: 'www-data'
nginx_worker_processes: '{{ ansible_processor_vcpus }}' nginx_worker_processes: '{{ ansible_processor_vcpus }}'
nginx_pid: '/run/nginx.pid'
nginx_events: nginx_events:
worker_connections: '512' worker_connections: '512'

View File

@ -4,7 +4,7 @@
user {{ nginx_user }}; user {{ nginx_user }};
worker_processes {{ nginx_worker_processes }}; worker_processes {{ nginx_worker_processes }};
pid {{ nginx_pid }}; pid /run/nginx.pid;
events { events {
{% for key, value in nginx_events.iteritems() %} {% for key, value in nginx_events.iteritems() %}
@ -16,7 +16,7 @@ http {
types_hash_max_size 2048; types_hash_max_size 2048;
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
default_type application/octet-stream; default_type application/octet-stream;
# From Ansible # From Ansible
{% for key, value in nginx_http.iteritems() %} {% for key, value in nginx_http.iteritems() %}
{{ "\t%-30s %s" | format(key, value) }}; {{ "\t%-30s %s" | format(key, value) }};