Skip to content

Commit c2c0bb9

Browse files
vbotkaalessfg
authored andcommitted
Split defaults/main.yml to more files in directory defaults/main (#200)
1 parent cc4311d commit c2c0bb9

File tree

9 files changed

+161
-631
lines changed

9 files changed

+161
-631
lines changed

README.md

Lines changed: 11 additions & 488 deletions
Large diffs are not rendered by default.

defaults/main/amplify.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# Install NGINX Amplify.
3+
# Use your NGINX Amplify API key.
4+
# Requires access to either the NGINX stub status or the NGINX Plus REST API.
5+
# Default is null.
6+
nginx_amplify_enable: false
7+
nginx_amplify_api_key: null

defaults/main/bsd.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# Supported distributions
3+
nginx_bsd_systems: ['FreeBSD', 'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD']
4+
5+
# Supported distributions NGINX Plus
6+
# https://docs.nginx.com/nginx/technical-specs/
7+
nginx_plus_bsd_systems: ['FreeBSD']
8+
9+
# Choose to install BSD packages or ports.
10+
# Options are True for packages or False for ports.
11+
# Default is True.
12+
nginx_bsd_install_packages: true
13+
14+
# Choose to update BSD ports collection.
15+
# Options are True for update or False for do not update.
16+
# Default is True.
17+
nginx_bsd_update_ports: true
18+
19+
# Choose to install packages built from BSD ports collection if
20+
# available.
21+
# Options are True for use packages or False for do not use packages.
22+
# Default is True.
23+
nginx_bsd_portinstall_use_packages: true
24+
25+
# FreeBSD extra packages
26+
nginx_freebsd_extra_packages: ['security/ca_root_nss']

defaults/main/controller.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Install NGINX Controller.
3+
# Use your NGINX Controller API key and NGINX Controller API endpoint.
4+
# Requires NGINX Plus and write access to the NGINX Plus REST API.
5+
# Default is null.
6+
nginx_controller_enable: false
7+
nginx_controller_api_key: null
8+
nginx_controller_api_endpoint: null

defaults/main/linux.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# Supported distributions
3+
nginx_linux_families: ['Alpine', 'Debian', 'RedHat', 'Suse']
4+
5+
# Supported distributions NGINX Plus
6+
# https://docs.nginx.com/nginx/technical-specs/
7+
# RedHat={Amazon,CentOS,OracleLinux,RHEL} Debian={Ubuntu,Debian}
8+
nginx_plus_linux_families: ['Alpine', 'Debian', 'RedHat', 'Suse']

defaults/main/main.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
# Specify which type of NGINX you want to install.
14+
# Options are 'opensource' or 'plus'.
15+
# Default is 'opensource'.
16+
nginx_type: opensource
17+
18+
# Specify which version of NGINX you want to install.
19+
# Default is empty.
20+
# nginx_version: =19-1~bionic
21+
22+
# Specify repository origin for NGINX Open Source.
23+
# Options are 'nginx_repository' or 'os_repository'.
24+
# Only works if 'nginx_type' is set to 'opensource'.
25+
# Default is nginx_repository.
26+
nginx_install_from: nginx_repository
27+
28+
# Choose where to fetch the NGINX signing key from.
29+
# Default is the official NGINX signing key host.
30+
# nginx_signing_key: http://nginx.org/keys/nginx_signing.key
31+
32+
# Specify source repository for NGINX Open Source.
33+
# Only works if 'install_from' is set to 'nginx_repository'.
34+
# Defaults are the official NGINX repositories.
35+
# nginx_repository: deb https://nginx.org/packages/mainline/debian/ stretch nginx
36+
37+
# Specify which branch of NGINX Open Source you want to install.
38+
# Options are 'mainline' or 'stable'.
39+
# Only works if 'install_from' is set to 'nginx_repository'.
40+
# Default is mainline.
41+
nginx_branch: mainline
42+
43+
# Location of your NGINX Plus license in your local machine.
44+
# Default is the files folder within the NGINX Ansible role.
45+
nginx_license:
46+
certificate: license/nginx-repo.crt
47+
key: license/nginx-repo.key
48+
49+
# Delete NGINX Plus license after installation for security purposes.
50+
# Default is false.
51+
nginx_delete_license: false
52+
53+
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming (NGINX Plus only), and/or XSLT modules.
54+
# Default is false.
55+
nginx_modules:
56+
njs: false
57+
perl: false
58+
waf: false
59+
geoip: false
60+
image_filter: false
61+
rtmp: false
62+
xslt: false
63+
64+
# Remove previously existing NGINX configuration files.
65+
# Use a list of paths you wish to remove.
66+
# Default is false.
67+
nginx_cleanup_config: false
68+
nginx_cleanup_config_path:
69+
- /etc/nginx/conf.d

defaults/main.yml renamed to defaults/main/template.yml

Lines changed: 0 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,4 @@
11
---
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-
1452
# Enable creating dynamic templated NGINX HTML demo websites.
1463
nginx_html_demo_template_enable: false
1474
nginx_html_demo_template:

defaults/main/unit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# Install NGINX Unit and NGINX Unit modules.
3+
# Use a list of supported NGINX Unit modules.
4+
# Default is false.
5+
nginx_unit_enable: false
6+
nginx_unit_modules: null

defaults/main/upload.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# Enable uploading NGINX configuration files to your system.
3+
# Default for uploading files is false.
4+
# Default location of files is the files folder within the NGINX Ansible role.
5+
# Upload the main NGINX configuration file.
6+
nginx_main_upload_enable: false
7+
nginx_main_upload_src: conf/nginx.conf
8+
nginx_main_upload_dest: /etc/nginx/
9+
# Upload HTTP NGINX configuration files.
10+
nginx_http_upload_enable: false
11+
nginx_http_upload_src: conf/http/*.conf
12+
nginx_http_upload_dest: /etc/nginx/conf.d/
13+
# Upload Stream NGINX configuration files.
14+
nginx_stream_upload_enable: false
15+
nginx_stream_upload_src: conf/stream/*.conf
16+
nginx_stream_upload_dest: /etc/nginx/conf.d/
17+
# Upload HTML files.
18+
nginx_html_upload_enable: false
19+
nginx_html_upload_src: www/*
20+
nginx_html_upload_dest: /usr/share/nginx/html
21+
# Upload SSL certificates and keys.
22+
nginx_ssl_upload_enable: false
23+
nginx_ssl_crt_upload_src: ssl/*.crt
24+
nginx_ssl_crt_upload_dest: /etc/ssl/certs/
25+
nginx_ssl_key_upload_src: ssl/*.key
26+
nginx_ssl_key_upload_dest: /etc/ssl/private/

0 commit comments

Comments
 (0)