Skip to content

Commit

Permalink
chore!: Do not omit allow_downgrade module parameter on Ansible <2.…
Browse files Browse the repository at this point in the history
…12 (#756)
  • Loading branch information
alessfg authored Jul 29, 2024
1 parent 2cb23bd commit 12731ed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BREAKING CHANGES:

- 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).
- Remove support for installing NGINX Open Source on Alpine Linux 3.16.
- No longer omit `allow_downgrade` module parameter when running Ansible versions lower than `2.12`.

FEATURES:

Expand Down
2 changes: 1 addition & 1 deletion tasks/opensource/install-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
name: nginx{{ nginx_version | default('') }}
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
allow_downgrade: true
ignore_errors: "{{ ansible_check_mode }}"
notify: (Handler) Run NGINX
2 changes: 1 addition & 1 deletion tasks/opensource/install-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
name: nginx{{ nginx_version | default('') }}
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
allow_downgrade: true
ignore_errors: "{{ ansible_check_mode }}"
notify: (Handler) Run NGINX
2 changes: 1 addition & 1 deletion tasks/plus/install-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
name: nginx-plus{{ nginx_version | default('') }}
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
allow_downgrade: true
ignore_errors: "{{ ansible_check_mode }}"
when: nginx_license_status is not defined
notify: (Handler) Run NGINX
2 changes: 1 addition & 1 deletion tasks/plus/install-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
name: nginx-plus{{ nginx_version | default('') }}
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: "{{ omit if ansible_version['full'] is version('2.12', '<') else true }}"
allow_downgrade: true
ignore_errors: "{{ ansible_check_mode }}"
when: nginx_license_status is not defined
notify: (Handler) Run NGINX

0 comments on commit 12731ed

Please sign in to comment.