ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore

ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore.

Issue: When trying to set up Ansible Dynamic inventory, I am getting the following error.

ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore.

I have installed python3 and boto3. But still, ansible is throwing an error on boto3.

[Solution] ec2 dynamic inventory plugin requires boto3

This issue normally happens when you install Ansible from Ansible ppa.

To fix these issues you need to install boto3 using the following command.

sudo apt-get install python-boto3

Once you executed the above command, you can try executing the dynamic inventory again, it will not throw this error.

You might like, checking application status using Ansible

ERROR! The ec2 dynamic inventory plugin requires boto3 and botocore

Other Interesting Blogs

Leave a Comment

1 Share
Share via
Copy link
Powered by Social Snap