class Proxy::Ansible::TaskLauncher::AnsibleRunner

Public Class Methods

runner_class() click to toggle source
# File lib/smart_proxy_ansible/task_launcher/ansible_runner.rb, line 20
def self.runner_class
  Runner::AnsibleRunner
end

Public Instance Methods

operation() click to toggle source
# File lib/smart_proxy_ansible/task_launcher/ansible_runner.rb, line 16
def operation
  'ansible-runner'
end
runner_input(input) click to toggle source
Calls superclass method
# File lib/smart_proxy_ansible/task_launcher/ansible_runner.rb, line 10
def runner_input(input)
  super(input).reduce({}) do |acc, (_id, data)|
    acc.merge(data[:input]['action_input']['name'] => data)
  end
end
transform_input(input) click to toggle source

Discard everything apart from hostname to be able to tell the actions apart when debugging

# File lib/smart_proxy_ansible/task_launcher/ansible_runner.rb, line 26
def transform_input(input)
  { 'action_input' => input['action_input'].slice('name') }
end