Need help in using amazon.aws collection on RHEL 6

15 views
Skip to first unread message

Sac Isilia

unread,
May 31, 2023, 6:11:25 AM5/31/23
to Ansible Project
Hi Team,

I am writing a playbook in which I  need to use amazon.aws collection to fetch the instance metadata. I am interested in particularly this module (amazon.aws.ec2_metadata_facts). As per the documentation , this was introduced in version 1.0.0 . I can see on the github repo that latest version of amazon.aws collection is not going to support python version less than 3.7 .

But my requirement can be satisfied if I use amazon.aws collection version 1.0.0 or greater than that which will work with Python 2.6.6 and ansible version 2.6.20 . The current OS is RHEL 6 . Please let me know if I can customize this collection and make it work for RHEL 6 and Python 2.6.6 version. If yes , can someone share the steps

Regards
Sachin Kumar

Nico Kadel-Garcia

unread,
May 31, 2023, 6:36:26 AM5/31/23
to ansible...@googlegroups.com
On Wed, May 31, 2023 at 6:11 AM Sac Isilia <udayprata...@gmail.com> wrote:
>
> Hi Team,
>
> I am writing a playbook in which I need to use amazon.aws collection to fetch the instance metadata. I am interested in particularly this module (amazon.aws.ec2_metadata_facts). As per the documentation , this was introduced in version 1.0.0 . I can see on the github repo that latest version of amazon.aws collection is not going to support python version less than 3.7 .

RHEL 6 is obsolete. Ansible expects python 3, especially on the
ansible server. If the RHEL 6 is being remotely managed from a
supportable ansible server, you should be able to install python34
from EPEL, but I'd get the heck off that host.

> But my requirement can be satisfied if I use amazon.aws collection version 1.0.0 or greater than that which will work with Python 2.6.6 and ansible version 2.6.20 . The current OS is RHEL 6 . Please let me know if I can customize this collection and make it work for RHEL 6 and Python 2.6.6 version. If yes , can someone share the steps
>
> Regards
> Sachin Kumar

I recommend you stop playing with python 2 wherever avoidable, and
prepare to replace that RHEL 6 host.. Expecting anything contemporary
to work with it is... asking for support tasks you probably don't want
to take on.
Reply all
Reply to author
Forward
0 new messages