|
1 | 1 | ---
|
2 |
| -# Install NGINX. |
3 |
| -# Default is true. |
4 |
| -nginx_enable: true |
5 |
| - |
6 |
| -# Start NGINX service. |
7 |
| -# Default is true. |
8 |
| -nginx_start: true |
9 |
| - |
10 |
| -# Print NGINX configuration file to terminal after executing playbook. |
11 |
| -nginx_debug_output: false |
12 |
| - |
13 |
| -# Supported distributions |
14 |
| -nginx_linux_families: ['Alpine', 'Debian', 'RedHat', 'Suse'] |
15 |
| -nginx_bsd_systems: ['FreeBSD', 'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD'] |
16 |
| -# Supported distributions NGINX Plus |
17 |
| -# https://docs.nginx.com/nginx/technical-specs/ |
18 |
| -# RedHat={Amazon,CentOS,OracleLinux,RHEL} Debian={Ubuntu,Debian} |
19 |
| -nginx_plus_linux_families: ['Alpine', 'Debian', 'RedHat', 'Suse'] |
20 |
| -nginx_plus_bsd_systems: ['FreeBSD'] |
21 |
| - |
22 |
| -# Specify which type of NGINX you want to install. |
23 |
| -# Options are 'opensource' or 'plus'. |
24 |
| -# Default is 'opensource'. |
25 |
| -nginx_type: opensource |
26 |
| -# Specify which version of NGINX you want to install. |
27 |
| -# Default is empty. |
28 |
| -# nginx_version: =19-1~bionic |
29 |
| - |
30 |
| -# Specify repository origin for NGINX Open Source. |
31 |
| -# Options are 'nginx_repository' or 'os_repository'. |
32 |
| -# Only works if 'nginx_type' is set to 'opensource'. |
33 |
| -# Default is nginx_repository. |
34 |
| -nginx_install_from: nginx_repository |
35 |
| - |
36 |
| -# Choose where to fetch the NGINX signing key from. |
37 |
| -# Default is the official NGINX signing key host. |
38 |
| -# nginx_signing_key: http://nginx.org/keys/nginx_signing.key |
39 |
| - |
40 |
| -# Specify source repository for NGINX Open Source. |
41 |
| -# Only works if 'install_from' is set to 'nginx_repository'. |
42 |
| -# Defaults are the official NGINX repositories. |
43 |
| -# nginx_repository: deb https://nginx.org/packages/mainline/debian/ stretch nginx |
44 |
| - |
45 |
| -# Choose to install BSD packages or ports. |
46 |
| -# Options are True for packages or False for ports. |
47 |
| -# Default is True. |
48 |
| -nginx_bsd_install_packages: true |
49 |
| - |
50 |
| -# Choose to update BSD ports collection. |
51 |
| -# Options are True for update or False for do not update. |
52 |
| -# Default is True. |
53 |
| -nginx_bsd_update_ports: true |
54 |
| - |
55 |
| -# Choose to install packages built from BSD ports collection if |
56 |
| -# available. |
57 |
| -# Options are True for use packages or False for do not use packages. |
58 |
| -# Default is True. |
59 |
| -nginx_bsd_portinstall_use_packages: true |
60 |
| - |
61 |
| -# Specify which branch of NGINX Open Source you want to install. |
62 |
| -# Options are 'mainline' or 'stable'. |
63 |
| -# Only works if 'install_from' is set to 'nginx_repository'. |
64 |
| -# Default is mainline. |
65 |
| -nginx_branch: mainline |
66 |
| - |
67 |
| -# Location of your NGINX Plus license in your local machine. |
68 |
| -# Default is the files folder within the NGINX Ansible role. |
69 |
| -nginx_license: |
70 |
| - certificate: license/nginx-repo.crt |
71 |
| - key: license/nginx-repo.key |
72 |
| - |
73 |
| -# Delete NGINX Plus license after installation for security purposes. |
74 |
| -# Default is true. |
75 |
| -nginx_delete_license: true |
76 |
| - |
77 |
| -# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules. |
78 |
| -# Default is false. |
79 |
| -nginx_modules: |
80 |
| - njs: false |
81 |
| - perl: false |
82 |
| - waf: false |
83 |
| - geoip: false |
84 |
| - image_filter: false |
85 |
| - rtmp: false |
86 |
| - xslt: false |
87 |
| - |
88 |
| -# FreeBSD extra packages |
89 |
| -nginx_freebsd_extra_packages: ['security/ca_root_nss'] |
90 |
| - |
91 |
| -# Install NGINX Amplify. |
92 |
| -# Use your NGINX Amplify API key. |
93 |
| -# Requires access to either the NGINX stub status or the NGINX Plus REST API. |
94 |
| -# Default is null. |
95 |
| -nginx_amplify_enable: false |
96 |
| -nginx_amplify_api_key: null |
97 |
| - |
98 |
| -# Install NGINX Controller. |
99 |
| -# Use your NGINX Controller API key and NGINX Controller API endpoint. |
100 |
| -# Requires NGINX Plus and write access to the NGINX Plus REST API. |
101 |
| -# Default is null. |
102 |
| -nginx_controller_enable: false |
103 |
| -nginx_controller_api_key: null |
104 |
| -nginx_controller_api_endpoint: null |
105 |
| - |
106 |
| -# Install NGINX Unit and NGINX Unit modules. |
107 |
| -# Use a list of supported NGINX Unit modules. |
108 |
| -# Default is false. |
109 |
| -nginx_unit_enable: false |
110 |
| -nginx_unit_modules: null |
111 |
| - |
112 |
| -# Remove previously existing NGINX configuration files. |
113 |
| -# Use a list of paths you wish to remove. |
114 |
| -# Default is false. |
115 |
| -nginx_cleanup_config: false |
116 |
| -nginx_cleanup_config_path: |
117 |
| - - /etc/nginx/conf.d |
118 |
| - |
119 |
| -# Enable uploading NGINX configuration files to your system. |
120 |
| -# Default for uploading files is false. |
121 |
| -# Default location of files is the files folder within the NGINX Ansible role. |
122 |
| -# Upload the main NGINX configuration file. |
123 |
| -nginx_main_upload_enable: false |
124 |
| -nginx_main_upload_src: conf/nginx.conf |
125 |
| -nginx_main_upload_dest: /etc/nginx/ |
126 |
| -# Upload HTTP NGINX configuration files. |
127 |
| -nginx_http_upload_enable: false |
128 |
| -nginx_http_upload_src: conf/http/*.conf |
129 |
| -nginx_http_upload_dest: /etc/nginx/conf.d/ |
130 |
| -# Upload Stream NGINX configuration files. |
131 |
| -nginx_stream_upload_enable: false |
132 |
| -nginx_stream_upload_src: conf/stream/*.conf |
133 |
| -nginx_stream_upload_dest: /etc/nginx/conf.d/ |
134 |
| -# Upload HTML files. |
135 |
| -nginx_html_upload_enable: false |
136 |
| -nginx_html_upload_src: www/* |
137 |
| -nginx_html_upload_dest: /usr/share/nginx/html |
138 |
| -# Upload SSL certificates and keys. |
139 |
| -nginx_ssl_upload_enable: false |
140 |
| -nginx_ssl_crt_upload_src: ssl/*.crt |
141 |
| -nginx_ssl_crt_upload_dest: /etc/ssl/certs/ |
142 |
| -nginx_ssl_key_upload_src: ssl/*.key |
143 |
| -nginx_ssl_key_upload_dest: /etc/ssl/private/ |
144 |
| - |
145 | 2 | # Enable creating dynamic templated NGINX HTML demo websites.
|
146 | 3 | nginx_html_demo_template_enable: false
|
147 | 4 | nginx_html_demo_template:
|
|
0 commit comments