Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
"Boto3 required for this module" when using delegate_to #511
Got another fun one for you :)
First up, info:
I believe I noticed this while I was helping troubleshoot the issue in #499, so it predates the fixes that were committed for that ticket. However, it's still happening for me since I pulled the latest master commits. We run ansible from a bunch of jenkins agents in various AWS VPCs, and when I run ansible on these hosts with mitogen enabled it fails at the following task, with the error message "Boto3 required for this module":
When I disable mitogen the task runs without error.
Iinteresting :) How is boto installed? I think the magic here is "127.0.0.1" -- it is different (believe it or not) from the magic Ansible "localhost". The default transport is used -- so this is running as an SSH connection to the local machine, rather than as a simple subprocess using the inherited Python/virtualenv/whatever environment of the controller.
But in either case, it's a difference and we need to fix it.
Do you know how and where boto is installed on that machine? e.g. Debian package, virtualenv, etc. Also do you know which interpreter it is installed for? Master has subtle changes to python_path which I need to review before 0.2.4 is out -- it could be that Ansible is running with a different interpreter than the one used for '127.0.0.1'