You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with version 0.22.0 the role no longer works with ansible < 2.12. Hence debian buster is by default not supported as only python 3.7 is available.
To reproduce
Steps to reproduce the behavior:
Use Debian 10 VM
Install ansible via python3 -m pip ansible
install role in version 0.22
Deploy NGINX role using a playbook.yml
See error
build 21-Dec-2021 16:17:15 Ensuring that all ansible roles are installed in the latest version
error 21-Dec-2021 16:17:15 [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
error 21-Dec-2021 16:17:15 controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jan 22
error 21-Dec-2021 16:17:15 2021, 20:04:44) [GCC 8.3.0]. This feature will be removed from ansible-core in
error 21-Dec-2021 16:17:15 version 2.12. Deprecation warnings can be disabled by setting
error 21-Dec-2021 16:17:15 deprecation_warnings=False in ansible.cfg.
build 21-Dec-2021 16:17:16 Starting galaxy role install process
build 21-Dec-2021 16:17:17 - downloading role 'nginx', owned by nginxinc
build 21-Dec-2021 16:17:18 - downloading role from https://github.com/nginxinc/ansible-role-nginx/archive/0.22.0.tar.gz
build 21-Dec-2021 16:17:19 - extracting nginxinc.nginx to ....../ansible-env/.ansible/roles/nginxinc.nginx
build 21-Dec-2021 16:17:19 - nginxinc.nginx (0.22.0) was installed successfully
build 21-Dec-2021 16:17:19 - downloading role 'nginx_config', owned by nginxinc
build 21-Dec-2021 16:17:20 - downloading role from https://github.com/nginxinc/ansible-role-nginx-config/archive/0.3.3.tar.gz
build 21-Dec-2021 16:17:20 - extracting nginxinc.nginx_config to ..../ansible-env/.ansible/roles/nginxinc.nginx_config
build 21-Dec-2021 16:17:20 - nginxinc.nginx_config (0.3.3) was installed successfully
error 21-Dec-2021 16:17:20 [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
error 21-Dec-2021 16:17:20 controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jan 22
error 21-Dec-2021 16:17:20 2021, 20:04:44) [GCC 8.3.0]. This feature will be removed from ansible-core in
error 21-Dec-2021 16:17:20 version 2.12. Deprecation warnings can be disabled by setting
error 21-Dec-2021 16:17:20 deprecation_warnings=False in ansible.cfg.
build 21-Dec-2021 16:17:21
build 21-Dec-2021 16:17:21 PLAY [frontendservers:&dev] *****************************************
build 21-Dec-2021 16:17:21
build 21-Dec-2021 16:17:21 TASK [Gathering Facts] *********************************************************
.....
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Check whether you are using a supported NGINX distribution] ***
build 21-Dec-2021 16:17:24 ok: [xxxxxxx] => {
build 21-Dec-2021 16:17:24 "changed": false,
build 21-Dec-2021 16:17:24 "msg": "Your OS, Debian is supported by NGINX Open Source"
build 21-Dec-2021 16:17:24 }
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Check that NGINX setup is an allowed value] *************
build 21-Dec-2021 16:17:24 ok: [xxxxxxx] => {
build 21-Dec-2021 16:17:24 "changed": false,
build 21-Dec-2021 16:17:24 "msg": "All assertions passed"
build 21-Dec-2021 16:17:24 }
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Set up prerequisites] ***********************************
build 21-Dec-2021 16:17:24 included: ...../ansible-env/.ansible/roles/nginxinc.nginx/tasks/prerequisites/prerequisites.yml for xxxxxxx
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Install dependencies] ***********************************
build 21-Dec-2021 16:17:24 included: ....../ansible-env/.ansible/roles/nginxinc.nginx/tasks/prerequisites/install-dependencies.yml for xxxxxxx
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:25 TASK [nginxinc.nginx : (Debian/Ubuntu) Install dependencies] *******************
build 21-Dec-2021 16:17:27 ok: [xxxxxxx]
build 21-Dec-2021 16:17:27
Checking within the role for unsupported versions of Ansible is on the roadmap. I'm aiming to add it before the next major release but I have no ETA at the moment. PRs are welcome too!
This also applies to Ubuntu Bionic (18.04 LTS) where the most recent Ansible PPA release is currently 2.9.27. Newer Ubuntu versions have 5.x releases, so Focal (20.04 LTS) works.
Describe the bug
Starting with version 0.22.0 the role no longer works with ansible < 2.12. Hence debian buster is by default not supported as only python 3.7 is available.
To reproduce
Steps to reproduce the behavior:
build 21-Dec-2021 16:17:15 Ensuring that all ansible roles are installed in the latest version
error 21-Dec-2021 16:17:15 [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
error 21-Dec-2021 16:17:15 controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jan 22
error 21-Dec-2021 16:17:15 2021, 20:04:44) [GCC 8.3.0]. This feature will be removed from ansible-core in
error 21-Dec-2021 16:17:15 version 2.12. Deprecation warnings can be disabled by setting
error 21-Dec-2021 16:17:15 deprecation_warnings=False in ansible.cfg.
build 21-Dec-2021 16:17:16 Starting galaxy role install process
build 21-Dec-2021 16:17:17 - downloading role 'nginx', owned by nginxinc
build 21-Dec-2021 16:17:18 - downloading role from https://github.com/nginxinc/ansible-role-nginx/archive/0.22.0.tar.gz
build 21-Dec-2021 16:17:19 - extracting nginxinc.nginx to ....../ansible-env/.ansible/roles/nginxinc.nginx
build 21-Dec-2021 16:17:19 - nginxinc.nginx (0.22.0) was installed successfully
build 21-Dec-2021 16:17:19 - downloading role 'nginx_config', owned by nginxinc
build 21-Dec-2021 16:17:20 - downloading role from https://github.com/nginxinc/ansible-role-nginx-config/archive/0.3.3.tar.gz
build 21-Dec-2021 16:17:20 - extracting nginxinc.nginx_config to ..../ansible-env/.ansible/roles/nginxinc.nginx_config
build 21-Dec-2021 16:17:20 - nginxinc.nginx_config (0.3.3) was installed successfully
error 21-Dec-2021 16:17:20 [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
error 21-Dec-2021 16:17:20 controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jan 22
error 21-Dec-2021 16:17:20 2021, 20:04:44) [GCC 8.3.0]. This feature will be removed from ansible-core in
error 21-Dec-2021 16:17:20 version 2.12. Deprecation warnings can be disabled by setting
error 21-Dec-2021 16:17:20 deprecation_warnings=False in ansible.cfg.
build 21-Dec-2021 16:17:21
build 21-Dec-2021 16:17:21 PLAY [frontendservers:&dev] *****************************************
build 21-Dec-2021 16:17:21
build 21-Dec-2021 16:17:21 TASK [Gathering Facts] *********************************************************
.....
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Check whether you are using a supported NGINX distribution] ***
build 21-Dec-2021 16:17:24 ok: [xxxxxxx] => {
build 21-Dec-2021 16:17:24 "changed": false,
build 21-Dec-2021 16:17:24 "msg": "Your OS, Debian is supported by NGINX Open Source"
build 21-Dec-2021 16:17:24 }
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Check that NGINX setup is an allowed value] *************
build 21-Dec-2021 16:17:24 ok: [xxxxxxx] => {
build 21-Dec-2021 16:17:24 "changed": false,
build 21-Dec-2021 16:17:24 "msg": "All assertions passed"
build 21-Dec-2021 16:17:24 }
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Set up prerequisites] ***********************************
build 21-Dec-2021 16:17:24 included: ...../ansible-env/.ansible/roles/nginxinc.nginx/tasks/prerequisites/prerequisites.yml for xxxxxxx
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:24 TASK [nginxinc.nginx : Install dependencies] ***********************************
build 21-Dec-2021 16:17:24 included: ....../ansible-env/.ansible/roles/nginxinc.nginx/tasks/prerequisites/install-dependencies.yml for xxxxxxx
build 21-Dec-2021 16:17:24
build 21-Dec-2021 16:17:25 TASK [nginxinc.nginx : (Debian/Ubuntu) Install dependencies] *******************
build 21-Dec-2021 16:17:27 ok: [xxxxxxx]
build 21-Dec-2021 16:17:27
build 21-Dec-2021 16:17:29 TASK [nginxinc.nginx : (Debian/Ubuntu) Install NGINX] **************************
build 21-Dec-2021 16:17:29 fatal: [xxxxxxx]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (apt) module: allow_downgrade. Supported parameters include: dpkg_options, update_cache_retry_max_delay, autoremove, force, force_apt_get, policy_rc_d, upgrade, update_cache (update-cache), autoclean, install_recommends (install-recommends), fail_on_autoremove, purge, state, update_cache_retries, package (name, pkg), deb, only_upgrade, default_release (default-release), allow_unauthenticated (allow-unauthenticated), cache_valid_time."}
build 21-Dec-2021 16:17:29
build 21-Dec-2021 16:17:29 PLAY RECAP *********************************************************************
build 21-Dec-2021 16:17:29 xxxxxxx : ok=15 changed=1 unreachable=0 failed=1 skipped=11 rescued=0 ignored=0
Expected behavior
System check should fail due to unsupported ansible version
Your environment
The text was updated successfully, but these errors were encountered: