Skip to content

Commit 5b60ab6

Browse files
authored
Feat: Ansible backwards compatibility (#485)
1 parent 0adcf30 commit 5b60ab6

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ BREAKING CHANGES:
66

77
CentOS 8 has reached EoL and has thus been removed from the list of supported platforms.
88

9+
FEATURES:
10+
11+
Support for ansible-base (ansible-core `<2.12`).
12+
913
BUG FIXES:
1014

1115
The Molecule `upgrade` scenario verification test no longer has to be updated on each new NGINX OSS release.

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: true
30+
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
3131
ignore_errors: "{{ ansible_check_mode }}"
3232
notify: (Handler) Run NGINX

tasks/opensource/install-redhat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
enabled: true
99
gpgcheck: true
1010
mode: 0644
11-
module_hotfixes: true
11+
module_hotfixes: "{{ omit if ansible_version.full is version('2.11', '<') else true }}"
1212
state: "{{ (nginx_state == 'uninstall') | ternary('absent', 'present') }}"
1313
when: nginx_manage_repo | bool
1414

@@ -17,6 +17,6 @@
1717
name: "nginx{{ nginx_version | default('') }}"
1818
state: "{{ nginx_state }}"
1919
update_cache: true
20-
allow_downgrade: true
20+
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
2121
ignore_errors: "{{ ansible_check_mode }}"
2222
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: true
28+
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else 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
@@ -18,7 +18,7 @@
1818
name: "nginx-plus{{ nginx_version | default('') }}"
1919
state: "{{ nginx_state }}"
2020
update_cache: true
21-
allow_downgrade: true
21+
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
2222
ignore_errors: "{{ ansible_check_mode }}"
2323
when: nginx_license_status is not defined
2424
notify: (Handler) Run NGINX

0 commit comments

Comments
 (0)