1. What do you have in /etc/os-release ?

2. What version of Ansible do you have installed (and from where, packaged
with the OS, pip installed?)

3. What version(s) of Python do you have installed?

4. Have you installed the requirements for whatever version of
rds_instance_info_module you are using? (python3, boto3, botocore)

https://docs.ansible.com/ansible/latest/collections/amazon/aws/rds_instance_info_module.html#requirements
https://galaxy.ansible.com/amazon/aws?extIdCarryOver=true&sc_cid=701f2000001OH7YAAW

On Fri, 7 Apr 2023 at 08:49, Anirban Das <[email protected]> wrote:

> Hi Team,
>
> I was trying to fetch my existing RDS instance using rds_instance_info
> module, but while I execute the playbook, I got below error. Can you please
> look into this and guide me what to do
>
> *Error*: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed
> to import the required Python library (botocore or boto3) on
> ansible-controller's Python /usr/bin/python2. Please read module
> documentation and install in the appropriate location. If the required
> library is installed, but Ansible is using the wrong Python interpreter,
> please consult the documentation on ansible_python_interpreter"}
>
> *Playbook:*
>
> ---
> - name: RDS Info
>   hosts: localhost
>   tasks:
>   vars:
>     region: "us-east-1"
>     db_instance_identifier: "database-instance-1"
>   tasks:
>     - name: Get RDS Endpoint
>       rds_instance_info:
>         region: "{{ region }}"
>         db_instance_identifier: "{{ db_instance_identifier }}"
>       register: info
>
>     - debug:
>         msg: "{{ info }}"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b958302f-a188-42fa-9562-a470dff6cc5cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/b958302f-a188-42fa-9562-a470dff6cc5cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKtKohRrbF%2BGLyAouHjUuC8QTrToRhGHLTKiiTWgdPgRLs57vg%40mail.gmail.com.

Reply via email to