Hey, I’m working on a new collection for an infrastructure provider (Equnix cloud). We’d like to move the collection to Galaxy at some point. There is only controller environment code, in other words, the code only runs on the same host as the ansible core, there’s no remote host execution.
I’m wondering if I need to do Python2 support. I read the Python requirements for collections [0], and it says that a collection must support Python 2.7. Python2.7 has not been supported for 3 years IIRC and that makes a lot of things harder for me.
Thanks for answering.
Cheers,
Tomas Karasek
PS. Are there any Ansible developers here at RedHat in Brno, CZ?
[0] https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#python-requirements
Hi Thomas,
Hey, I'm working on a new collection for an infrastructure provider
(Equnix cloud). We'd like to move the collection to Galaxy at some
point. There is only controller environment code, in other words, the
code only runs on the same host as the ansible core, there's no
remote host execution.
I'm wondering if I need to do Python2 support. I read the Python
requirements for collections [0], and it says that a collection must
support Python 2.7. Python2.7 has not been supported for 3 years IIRC
and that makes a lot of things harder for me.
this got already answered on IRC: the requirements you cite are for
collections included in the Ansible package (the ones listed here:
https://docs.ansible.com/ansible/devel/collections/). Ansible Galaxy
does not care whether your collection supports Python 2 or not.
Cheers,
Felix