diff --git a/CHANGELOG.md b/CHANGELOG.md index 9642a6d..fafbdf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/tasks/opensource/install-debian.yml b/tasks/opensource/install-debian.yml index f10c9bd..9a2e67f 100644 --- a/tasks/opensource/install-debian.yml +++ b/tasks/opensource/install-debian.yml @@ -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 diff --git a/tasks/opensource/install-redhat.yml b/tasks/opensource/install-redhat.yml index 39a52b0..2c62ba4 100644 --- a/tasks/opensource/install-redhat.yml +++ b/tasks/opensource/install-redhat.yml @@ -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 diff --git a/tasks/plus/install-debian.yml b/tasks/plus/install-debian.yml index 7ddefe9..5f7ff31 100644 --- a/tasks/plus/install-debian.yml +++ b/tasks/plus/install-debian.yml @@ -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 diff --git a/tasks/plus/install-redhat.yml b/tasks/plus/install-redhat.yml index 5c0cf79..8ee7f45 100644 --- a/tasks/plus/install-redhat.yml +++ b/tasks/plus/install-redhat.yml @@ -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