0
votes

I'm trying to execute a playbook for starting an ec2 instance. Have boto3 and python installed on both controlling machine and client node. But it still gives me the error saying: "msg": "boto required for this module"

Have tried everything suggested here: Ansible ec2: "boto required for this module". But nada.

1
boto and boto3 are different things. - Jack
Pip3 install boto3 - error404
I guess this task most probably runs on localhost. If for whatever reason you run it on a remote host, did you install the requirements there ? - Zeitounator
ohk. thanks guys. have another doubt. i'm workign with python 2.7.3. For this, which version of boto is needed? boto or boto3? @error404, I aleady installed boto3 in the remote host. the issue came up inspite of that. - Vardhan

1 Answers

0
votes

You are missing the python boto package on the host that is executing the Ansible playbooks.

You can install it via the python package manager

$ pip install boto --user

If you are using linux you can also install it via the package manager:

# RHEL/CentOS
$ sudo yum -y install python-pip

# Fedora
$ sudo dnf -y install python-pip

Package dependencies are listed on the Ansible website for each module. For example for the ec2 module the Ansible host dependencies are:

python >= 2.6
boto

It is worth noting that that boto, botocore, and boto3 are all separate packages.