concourse-ansible-playbook-resource
concourse-ansible-playbook-resource copied to clipboard
Install ARA
It would be great to enable ARA in the resource.
Thanks for the suggestion. Upgrading to python 3 is a no-brainer, but I'd like to think about ARA further. How do you envision it could be configured with this resource? Disclaimer: I only heard about it after reading your issue.
Python 3 is now available on in the latest
and 2.0.0
resource image tags.
Thank you for consideration.
For the first iteration I would only set ANSIBLE_CALLBACK_PLUGINS and ANSIBLE_ACTION_PLUGINS as described in https://ara.readthedocs.io/en/latest/ansible-configuration.html. People would need to supply a .ansible.cfg
file in the ansible playbook dir they supply to the concourse resource.
If more integration is necessary, one could generate a (global) ansible.cfg with options supplied to the resource. I don' know whether that's worth it though.
Oh, of course it should also be possible to merge the settings easily with ansible (because it can edit ini-files easily) so it is not so hard to add ara settings from the resource's configuration to the ansible config file.
What do you think of the idea to use ansible to merge a ara config into a .ansible.cfg file? If it is remotely acceptable, I can prototype it soonish.
Since ruby is already manipulating the ansible.cfg file, I think I'd like to stick to that. I feel like some tricky cases could come out of ansible configuring ansible.
I'll see how I can integrate the ara configuration with ruby. (Sometime this year, I suppose)