Updated as subtree with my customisations.

pull/63/head
Ivan Grynenko 8 years ago
parent 811c16c55f
commit a8cefea244
  1. 0
      README.md
  2. 2
      defaults/main.yml
  3. 0
      handlers/main.yml
  4. 0
      meta/main.yml
  5. 0
      tasks/main.yml
  6. 0
      tasks/setup-Debian.yml
  7. 0
      tasks/setup-FreeBSD.yml
  8. 0
      tasks/setup-RedHat.yml
  9. 0
      tasks/setup-Ubuntu.yml
  10. 6
      tasks/vhosts.yml
  11. 2
      templates/nginx.conf.j2
  12. 0
      templates/nginx.repo.j2
  13. 0
      templates/vhosts.j2
  14. 0
      tests/inventory
  15. 0
      tests/test.yml
  16. 0
      vars/Debian.yml
  17. 0
      vars/FreeBSD.yml
  18. 0
      vars/RedHat.yml

@ -9,7 +9,7 @@ nginx_ppa_version: stable
# The name of the nginx apt/yum package to install.
nginx_package_name: "nginx"
nginx_worker_processes: "1"
nginx_worker_processes: "auto"
nginx_worker_connections: "1024"
nginx_multi_accept: "off"

@ -16,6 +16,12 @@
notify:
- reload nginx
- name: Creates Nginx vhost directory
file: path=/var/www/html/{{ server_hostname }} state=directory owner={{ nginx_user }} group={{ nginx_user }} mode=0775 recurse=yes
when: nginx_vhosts|length > 0
notify:
- reload nginx
- name: Remove managed vhost config file (if no vhosts are configured).
file:
path: "{{ nginx_vhost_path }}/vhosts.conf"

@ -35,7 +35,7 @@ http {
keepalive_timeout {{ nginx_keepalive_timeout }};
keepalive_requests {{ nginx_keepalive_requests }};
#gzip on;
gzip on;
{% if nginx_proxy_cache_path %}
proxy_cache_path {{ nginx_proxy_cache_path }};