main.yml 2.2 KB

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