main.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. # Used only for Debian/Ubuntu installation, as the -t option for apt.
  3. nginx_default_release: ""
  4. # Use the official Nginx PPA for Ubuntu, and the version to use if so.
  5. nginx_ppa_use: false
  6. nginx_ppa_version: stable
  7. # The name of the nginx apt/yum package to install.
  8. nginx_package_name: "nginx"
  9. nginx_worker_processes: "{{ ansible_processor_vcpus | default(ansible_processor_count) }}"
  10. nginx_worker_connections: "1024"
  11. nginx_multi_accept: "off"
  12. nginx_error_log: "/var/log/nginx/error.log warn"
  13. nginx_access_log: "/var/log/nginx/access.log main buffer=16k"
  14. nginx_sendfile: "on"
  15. nginx_tcp_nopush: "on"
  16. nginx_tcp_nodelay: "on"
  17. nginx_keepalive_timeout: "65"
  18. nginx_keepalive_requests: "100"
  19. nginx_client_max_body_size: "64m"
  20. nginx_server_names_hash_bucket_size: "64"
  21. nginx_proxy_cache_path: ""
  22. nginx_extra_conf_options: ""
  23. # Example extra main options, used within the main nginx's context:
  24. # nginx_extra_conf_options: |
  25. # env VARIABLE;
  26. # include /etc/nginx/main.d/*.conf;
  27. nginx_extra_http_options: ""
  28. # Example extra http options, printed inside the main server http config:
  29. # nginx_extra_http_options: |
  30. # proxy_buffering off;
  31. # proxy_set_header X-Real-IP $remote_addr;
  32. # proxy_set_header X-Scheme $scheme;
  33. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  34. # proxy_set_header Host $http_host;
  35. nginx_remove_default_vhost: false
  36. nginx_vhosts_filename: "vhosts.conf"
  37. nginx_vhosts: []
  38. # Example vhost below, showing all available options:
  39. # - listen: "80 default_server" # default: "80 default_server"
  40. # server_name: "example.com" # default: N/A
  41. # root: "/var/www/example.com" # default: N/A
  42. # index: "index.html index.htm" # default: "index.html index.htm"
  43. #
  44. # # Properties that are only added if defined:
  45. # error_page: ""
  46. # access_log: ""
  47. # error_log: ""
  48. # extra_parameters: "" # Can be used to add extra config blocks (multiline).
  49. nginx_upstreams: []
  50. # - name: myapp1
  51. # strategy: "ip_hash" # "least_conn", etc.
  52. # keepalive: 16 # optional
  53. # servers: {
  54. # "srv1.example.com",
  55. # "srv2.example.com weight=3",
  56. # "srv3.example.com"
  57. # }