Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Update Ansible version and install boto #26
Updating ansible is totally fine, but I'm not sure about boto install, so far we are installing only requests via the alpine package.
In theory you could also just use the requirements attribute within drone to install dependencies for your use case in the standard requirements.txt format.
Besides that I need to check if we got a tagged release for the previous version :)
@tboerger ansible's aws modules are unusable without boto included.
are you saying I need to run
Then this plugin is useless <_< What's the point of having only partially-working ansible plugin?
The plugin is doing the pip install automatically if you provide a path to a requirements.txt.
And this plugin is even in that case not useless as it's working pretty well. It just doesn't install all possible python modules.
The plugin isn't working partially. But how should we cover every possible dynamic inventory hacking? I'm using dynamic inventory pretty much (not on aws) without the need to install any additional module.
re - requirements.txt - it still means a delay and unnecessary downloads every time a step with this plugin runs.
I apologize for the tone, but really, using AWS for dynamic inventories and to manipulate AWS resources would seem a pretty common Ansible use-case, not a hacking.
I guess we can always build our own image of the plugin, but in my opinion, that makes drone much less usable.
EDIT: What's wrong with including most common python modules, that Ansible needs? Even if plugin image becomes bigger, it's downloaded once and stays in docker image cache. Installing requirements would happen every time.
Generally it's encouraged to fork the plugins and add custom logic that is required for individuals.
After thinking about it I'm fine to add required dependencies for the 3 big major cloud providers aws, gcp and azure.
But instead of installing these deps via pip directly I would prefer the alpine packages for it, e.g. py-boto, similar to py-requests.
I will also soonish tag a new release and upgrade python to version 3 as 2.7 will reach eol more or less soon.