geerlingguy / docker-ubuntu1804-ansible

Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-ubuntu1804-ansible/
MIT License
79 stars 53 forks source link

no longer out of the box usable with Ansible 2.17 #29

Open wookietreiber opened 1 month ago

wookietreiber commented 1 month ago

I'm getting this with my molecule tests now:

ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/basic.py
SyntaxError: future feature annotations is not defined

Looks to be the Python shipping with bionic / included in the image is too old for Ansible 2.17, for more details see here.

I'm wondering, can the image be updated with a more recent Python version that allows out of the box usage with Ansible 2.17?

geerlingguy commented 1 month ago

@wookietreiber - Not easily, unfortunately... the two options that are easiest are to upgrade systems to 20.04+, or to lock your Ansible version at a lower version. Since 18.04 is beyond LTS standard support, I have decided to move all my tests and systems to a base of 20.04 (with most now on 24.04).

wookietreiber commented 1 month ago

Thanks for the reply, certainly the easiest option to drop support for out of LTS Bionic.