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 }}"