You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,14 @@ BREAKING CHANGES:
20
20
21
21
FEATURES:
22
22
23
+
* Validate that various role variables have been set to one of the allowed values.
23
24
* Add support for the newer `ndk` and `set-misc` NGINX Plus dynamic modules and remove old code checks for distributions that are no longer supported.
24
25
* Add AlmaLinux, Oracle Linux and Rocky Linux to the list of NGINX OSS and NGINX Plus tested and supported distributions.
25
26
* Add Alpine Linux 3.17 to the NGINX list of tested and supported platforms (and remove Alpine Linux 3.13 from the list of NGINX OSS supported distributions).
26
27
27
28
ENHANCEMENTS:
28
29
30
+
* Improve validation of supported distributions when installing NGINX from the official repository.
29
31
* Bump the Ansible `community.general` collection to `6.2.0`, `community.crypto` collection to `2.10.0` and `community.docker` collection to `3.4.0`.
30
32
* Use the official GitHub repositories as the source for the various packages required to compile NGINX OSS from source.
if ansible_facts['distribution'] | lower in ['alpine', 'ubuntu'] else ansible_facts['distribution_major_version'] in nginx_distributions[ansible_facts['distribution'] | lower]['versions'] | string }}"
8
+
- "{{ ansible_facts['architecture'] in nginx_distributions[ansible_facts['distribution'] | lower]['architectures'] }}"
9
+
success_msg: Your distribution, {{ nginx_distributions[ansible_facts['distribution'] | lower]['name'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['architecture'] }}), is supported by NGINX {{ (nginx_type == 'opensource') | ternary('Open Source', 'Plus') }}.
10
+
fail_msg: Your distribution, {{ nginx_distributions[ansible_facts['distribution'] | lower]['name'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['architecture'] }}), is not supported by NGINX {{ (nginx_type == 'opensource') | ternary('Open Source', 'Plus') }}.
11
+
when:
12
+
- nginx_enable | bool
13
+
- (nginx_install_from == "nginx_repository" or nginx_type == "plus")
14
+
ignore_errors: true # noqa ignore-errors
15
+
16
+
- name: Check that 'nginx_setup' is an allowed value
17
+
ansible.builtin.assert:
18
+
that: nginx_setup in nginx_setup_vars
19
+
fail_msg: The value you used for 'nginx_setup', {{ nginx_setup }}, is not allowed. The allowed values are [{{ nginx_setup_vars | join(', ') }}].
20
+
when: nginx_enable | bool
21
+
ignore_errors: true # noqa ignore-errors
22
+
23
+
- name: Check that 'nginx_branch' is an allowed value
24
+
ansible.builtin.assert:
25
+
that: nginx_branch in nginx_branch_vars
26
+
fail_msg: The value you used for 'nginx_branch', {{ nginx_branch }}, is not allowed. The allowed values are [{{ nginx_branch_vars | join(', ') }}].
27
+
when: nginx_enable | bool
28
+
ignore_errors: true # noqa ignore-errors
29
+
30
+
- name: Check that 'nginx_install_from' is an allowed value
31
+
ansible.builtin.assert:
32
+
that: nginx_install_from in nginx_install_from_vars
33
+
fail_msg: The value you used for 'nginx_install_from', {{ nginx_install_from }}, is not allowed. The allowed values are [{{ nginx_install_from_vars | join(', ') }}].
architectures: "{{ (['x86_64', 'aarch64'] + ['s390x']) if (ansible_facts['distribution_major_version'] is version('8', '>=')) else ['x86_64', 'aarch64'] }}"
48
+
redhat:
49
+
name: Red Hat Enterprise Linux
50
+
versions: [7, 8, 9]
51
+
architectures: "{{ (['x86_64', 'aarch64'] + ['s390x']) if (ansible_facts['distribution_major_version'] is version('8', '>=')) else ['x86_64', 'aarch64'] }}"
52
+
rocky:
53
+
name: Rocky Linux
54
+
versions: [8, 9]
55
+
architectures: [x86_64, aarch64, s390x]
56
+
sles:
57
+
name: SUSE Linux Enterprise Server
58
+
versions: [12, 15]
59
+
architectures: [x86_64]
60
+
ubuntu:
61
+
name: Ubuntu
62
+
versions: [18.04, 20.04, 22.04, 22.10]
63
+
architectures: "{{ (['x86_64', 'aarch64'] + ['s390x']) if ((ansible_facts['distribution_version'] is version('20.04', '==')) or (ansible_facts['distribution_version'] is version('22.04', '=='))) else ['x86_64', 'aarch64'] }}"
0 commit comments