Smart-proxy Ansible plugin
Proxy plugin to make foreman_ansible actions run in the proxy
Installation (in development)
Get the code
Smart proxy part
Clone the repository:
git clone email@example.com:theforeman/smart_proxy_ansible.git
Point the foreman proxy to use this plugin with this line in proxy's
assuming the smart proxy and
smart_proxy_ansible share the same parent directory.
gem 'smart_proxy_ansible', :path => '../smart_proxy_ansible'
Enable the plugin in proxy's
--- :enabled: true
Refer to foreman_ansible instructions.
Check it's working
After the proxy are up and running, reload the proxy features on Foreman (Infrastructure > Smart Proxies) and the Ansible feature should appear as a new one.
At this point, you should be able to trigger foreman_ansible actions such as running roles for a host and they will run in the proxy when it's available. You should be able to see the output of these jobs under 'Monitor > Tasks' in Foreman.