Feat: Ansible backwards compatibility (#485)
This commit is contained in:
parent
0adcf30069
commit
5b60ab6448
@ -6,6 +6,10 @@ BREAKING CHANGES:
|
|||||||
|
|
||||||
CentOS 8 has reached EoL and has thus been removed from the list of supported platforms.
|
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:
|
BUG FIXES:
|
||||||
|
|
||||||
The Molecule `upgrade` scenario verification test no longer has to be updated on each new NGINX OSS release.
|
The Molecule `upgrade` scenario verification test no longer has to be updated on each new NGINX OSS release.
|
||||||
|
@ -27,6 +27,6 @@
|
|||||||
name: "nginx{{ nginx_version | default('') }}"
|
name: "nginx{{ nginx_version | default('') }}"
|
||||||
state: "{{ nginx_state }}"
|
state: "{{ nginx_state }}"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
allow_downgrade: true
|
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
notify: (Handler) Run NGINX
|
notify: (Handler) Run NGINX
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
gpgcheck: true
|
gpgcheck: true
|
||||||
mode: 0644
|
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') }}"
|
state: "{{ (nginx_state == 'uninstall') | ternary('absent', 'present') }}"
|
||||||
when: nginx_manage_repo | bool
|
when: nginx_manage_repo | bool
|
||||||
|
|
||||||
@ -17,6 +17,6 @@
|
|||||||
name: "nginx{{ nginx_version | default('') }}"
|
name: "nginx{{ nginx_version | default('') }}"
|
||||||
state: "{{ nginx_state }}"
|
state: "{{ nginx_state }}"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
allow_downgrade: true
|
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
notify: (Handler) Run NGINX
|
notify: (Handler) Run NGINX
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
name: "nginx-plus{{ nginx_version | default('') }}"
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
||||||
state: "{{ nginx_state }}"
|
state: "{{ nginx_state }}"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
allow_downgrade: true
|
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
when: nginx_license_status is not defined
|
when: nginx_license_status is not defined
|
||||||
notify: (Handler) Run NGINX
|
notify: (Handler) Run NGINX
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
name: "nginx-plus{{ nginx_version | default('') }}"
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
||||||
state: "{{ nginx_state }}"
|
state: "{{ nginx_state }}"
|
||||||
update_cache: true
|
update_cache: true
|
||||||
allow_downgrade: true
|
allow_downgrade: "{{ omit if ansible_version.full is version('2.12', '<') else true }}"
|
||||||
ignore_errors: "{{ ansible_check_mode }}"
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
when: nginx_license_status is not defined
|
when: nginx_license_status is not defined
|
||||||
notify: (Handler) Run NGINX
|
notify: (Handler) Run NGINX
|
||||||
|
Loading…
Reference in New Issue
Block a user