Feat: Ansible backwards compatibility (#485)

This commit is contained in:
Frank Fidanza 2022-02-10 20:04:51 +01:00 committed by GitHub
parent 0adcf30069
commit 5b60ab6448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -6,6 +6,10 @@ BREAKING CHANGES:
CentOS 8 has reached EoL and has thus been removed from the list of supported platforms.
FEATURES:
Support for ansible-base (ansible-core `<2.12`).
BUG FIXES:
The Molecule `upgrade` scenario verification test no longer has to be updated on each new NGINX OSS release.

View File

@ -27,6 +27,6 @@
name: "nginx{{ nginx_version | default('') }}"
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: true
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
ignore_errors: "{{ ansible_check_mode }}"
notify: (Handler) Run NGINX

View File

@ -8,7 +8,7 @@
enabled: true
gpgcheck: true
mode: 0644
module_hotfixes: true
module_hotfixes: "{{ omit if ansible_version.full is version('2.11', '<') else true }}"
state: "{{ (nginx_state == 'uninstall') | ternary('absent', 'present') }}"
when: nginx_manage_repo | bool
@ -17,6 +17,6 @@
name: "nginx{{ nginx_version | default('') }}"
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: true
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
ignore_errors: "{{ ansible_check_mode }}"
notify: (Handler) Run NGINX

View File

@ -25,7 +25,7 @@
name: "nginx-plus{{ nginx_version | default('') }}"
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: true
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
ignore_errors: "{{ ansible_check_mode }}"
when: nginx_license_status is not defined
notify: (Handler) Run NGINX

View File

@ -18,7 +18,7 @@
name: "nginx-plus{{ nginx_version | default('') }}"
state: "{{ nginx_state }}"
update_cache: true
allow_downgrade: true
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
ignore_errors: "{{ ansible_check_mode }}"
when: nginx_license_status is not defined
notify: (Handler) Run NGINX