Skip to content

Commit 822267f

Browse files
committed
chore!: Do not omit allow_downgrade module parameter on Ansible <2.12 (#756)
1 parent 2cb23bd commit 822267f

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ BREAKING CHANGES:
66

77
- Remove support for RHEL 7 based distributions (RHEL/CentOS/Oracle Linux 7). CentOS 7 has reached EoL, RHEL 7 has reached EoM, and Oracle Linux 7 will reach EoL shortly. These distributions will not be supported by new NGINX releases moving forward. If you are still using one of these distributions, please consider upgrading. If you still want to use this role for the time being, please use the previous release (0.24.3). Do note that you will only be able to use NGINX versions released as of the date of the aforementioned release (July 11, 2024).
88
- Remove support for installing NGINX Open Source on Alpine Linux 3.16.
9+
- No longer omit `allow_downgrade` module parameter when running Ansible versions lower than `2.12`.
910

1011
FEATURES:
1112

molecule/agent/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
- name: Get list of NGINX One dangling instance IDs
2727
ansible.builtin.uri:
28-
url: https://{{ lookup('env', 'ONE_TENANT') }}.console.ves.volterra.io/api/nginx/one/namespaces/default/instances?paginated=false&filter_fields=hostname&filter_ops=IN&filter_values=almalinux-8|almalinux-9|alpine-3.17|alpine-3.18|alpine-3.19|alpine-3.20|amazonlinux-2|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy|ubuntu-noble
28+
url: https://{{ lookup('env', 'ONE_TENANT') }}.console.ves.volterra.io/api/nginx/one/namespaces/default/instances?paginated=false&filter_fields=hostname&filter_ops=IN&filter_values=almalinux-8|almalinux-9|alpine-3.17|alpine-3.18|alpine-3.19|alpine-3.20|amazonlinux-2|amazonlinux-2023|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy|ubuntu-noble
2929
method: GET
3030
headers:
3131
Authorization: APIToken {{ lookup('env', 'ONE_API_TOKEN') }}

tasks/opensource/install-debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
name: nginx{{ nginx_version | default('') }}
2828
state: "{{ nginx_state }}"
2929
update_cache: true
30-
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
30+
allow_downgrade: true
3131
ignore_errors: "{{ ansible_check_mode }}"
3232
notify: (Handler) Run NGINX

tasks/opensource/install-redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
name: nginx{{ nginx_version | default('') }}
2323
state: "{{ nginx_state }}"
2424
update_cache: true
25-
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
25+
allow_downgrade: true
2626
ignore_errors: "{{ ansible_check_mode }}"
2727
notify: (Handler) Run NGINX

tasks/plus/install-debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
name: nginx-plus{{ nginx_version | default('') }}
2626
state: "{{ nginx_state }}"
2727
update_cache: true
28-
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
28+
allow_downgrade: true
2929
ignore_errors: "{{ ansible_check_mode }}"
3030
when: nginx_license_status is not defined
3131
notify: (Handler) Run NGINX

tasks/plus/install-redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
name: nginx-plus{{ nginx_version | default('') }}
2323
state: "{{ nginx_state }}"
2424
update_cache: true
25-
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
25+
allow_downgrade: true
2626
ignore_errors: "{{ ansible_check_mode }}"
2727
when: nginx_license_status is not defined
2828
notify: (Handler) Run NGINX

0 commit comments

Comments
 (0)