Skip to content

chore!: Do not omit allow_downgrade module parameter on Ansible <2.12 #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading