Class: ForemanAnsibleCore::TaskLauncher::AnsibleRunner

Inherits:
ForemanTasksCore::TaskLauncher::AbstractGroup
  • Object
show all
Defined in:
lib/foreman_ansible_core/task_launcher/ansible_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runner_classObject



16
17
18
# File 'lib/foreman_ansible_core/task_launcher/ansible_runner.rb', line 16

def self.runner_class
  Runner::AnsibleRunner
end

Instance Method Details

#operationObject



12
13
14
# File 'lib/foreman_ansible_core/task_launcher/ansible_runner.rb', line 12

def operation
  'ansible-runner'
end

#runner_input(input) ⇒ Object



6
7
8
9
10
# File 'lib/foreman_ansible_core/task_launcher/ansible_runner.rb', line 6

def runner_input(input)
  super(input).reduce({}) do |acc, (_id, data)|
    acc.merge(data[:input]['action_input']['name'] => data)
  end
end