62 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			YAML
		
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			YAML
		
	
	
---
 | 
						|
nginx_pkgs:
 | 
						|
  - nginx
 | 
						|
 | 
						|
nginx_install_epel_repo: True
 | 
						|
 | 
						|
nginx_official_repo: False
 | 
						|
nginx_official_repo_mainline: False
 | 
						|
 | 
						|
keep_only_specified: False
 | 
						|
 | 
						|
nginx_installation_type: "packages"
 | 
						|
nginx_binary_name: "nginx"
 | 
						|
nginx_service_name: "{{nginx_binary_name}}"
 | 
						|
nginx_conf_dir: /etc/nginx # For this variable, a specific value for the OS can be apply in vars/{{ ansible_os_family }}.yml 
 | 
						|
nginx_ssl_dir: /etc/nginx/ssl
 | 
						|
nginx_default_site_template: "site.conf.j2"
 | 
						|
 | 
						|
nginx_user: nginx  # For this variable, a specific value for the OS can be apply in vars/{{ ansible_os_family }}.
 | 
						|
nginx_group: "{{nginx_user}}"
 | 
						|
 | 
						|
nginx_pid_file: '/var/run/{{nginx_service_name}}.pid'
 | 
						|
 | 
						|
nginx_worker_processes: "{% if ansible_processor_vcpus is defined %}{{ ansible_processor_vcpus }}{% else %}auto{% endif %}"
 | 
						|
nginx_worker_rlimit_nofile: 1024
 | 
						|
nginx_log_dir: "/var/log/nginx"
 | 
						|
nginx_log_user: "{% if ansible_os_family == 'Debian' %}root{% else %}{{nginx_user}}{% endif %}"
 | 
						|
nginx_log_group: "{% if ansible_os_family == 'Debian' %}adm{% else %}{{nginx_group}}{% endif %}"
 | 
						|
nginx_error_log_level: "error"
 | 
						|
 | 
						|
nginx_conf_user: root
 | 
						|
nginx_conf_group: root
 | 
						|
 | 
						|
nginx_extra_root_params: []
 | 
						|
nginx_events_params:
 | 
						|
  - worker_connections {% if nginx_max_clients is defined %}{{nginx_max_clients}}{% else %}512{% endif %}
 | 
						|
 | 
						|
nginx_http_params: "{{ nginx_http_default_params }}"
 | 
						|
 | 
						|
nginx_stream_params: []
 | 
						|
 | 
						|
nginx_sites_default_root: /usr/share/nginx/html # For this variable, a specific value for the OS can be apply in vars/{{ ansible_os_family }}.
 | 
						|
 | 
						|
nginx_sites:
 | 
						|
  default:
 | 
						|
    - listen 80 default_server
 | 
						|
    - server_name _
 | 
						|
    - root "{{ nginx_sites_default_root }}" 
 | 
						|
    - index index.html
 | 
						|
nginx_remove_sites: []
 | 
						|
 | 
						|
nginx_configs: {}
 | 
						|
nginx_snippets: {}
 | 
						|
nginx_stream_configs: {}
 | 
						|
nginx_remove_configs: []
 | 
						|
nginx_remove_snippets: []
 | 
						|
 | 
						|
nginx_auth_basic_files: {}
 | 
						|
nginx_remove_auth_basic_files: []
 | 
						|
 | 
						|
nginx_daemon_mode: "on"
 |