Class: Proxy::Ansible::TaskLauncher::AnsibleRunner
- Inherits:
-
Dynflow::TaskLauncher::AbstractGroup
- Object
- Dynflow::TaskLauncher::AbstractGroup
- Proxy::Ansible::TaskLauncher::AnsibleRunner
- Defined in:
- lib/smart_proxy_ansible/task_launcher/ansible_runner.rb
Class Method Summary collapse
Instance Method Summary collapse
- #operation ⇒ Object
- #runner_input(input) ⇒ Object
-
#transform_input(input) ⇒ Object
Discard everything apart from hostname to be able to tell the actions apart when debugging.
Class Method Details
.runner_class ⇒ Object
20 21 22 |
# File 'lib/smart_proxy_ansible/task_launcher/ansible_runner.rb', line 20 def self.runner_class Runner::AnsibleRunner end |
Instance Method Details
#operation ⇒ Object
16 17 18 |
# File 'lib/smart_proxy_ansible/task_launcher/ansible_runner.rb', line 16 def operation 'ansible-runner' end |
#runner_input(input) ⇒ Object
10 11 12 13 14 |
# 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) ⇒ Object
Discard everything apart from hostname to be able to tell the actions apart when debugging
26 27 28 29 |
# File 'lib/smart_proxy_ansible/task_launcher/ansible_runner.rb', line 26 def transform_input(input) action_input = super['action_input'] { 'action_input' => { 'name' => action_input['name'], :task_id => action_input[:task_id], :runner_id => action_input[:runner_id] } } end |