Sha256: 9695270e7d527f302200b1d7fe989a25e9db8001ae595828c468e02668cb01ce
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 Bytes
Contents
if defined? ForemanRemoteExecution module ForemanAnsible # Provider for RemoteExecution that allows to run Ansible playbooks. # Read the source of other RemoteExecution providers for more. class AnsibleProvider < RemoteExecutionProvider class << self def humanized_name 'Ansible' end def host_setting(host, setting) host.params[setting.to_s] || Setting[setting] end def proxy_command_options(template_invocation, host) super(template_invocation, host).merge( 'ansible_inventory' => ::ForemanAnsible::InventoryCreator.new([host]).to_hash.to_json ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems