Actions
Bug #32030
closedUsing localhost in a playbook causes a crash
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:
Description
Using any of the available Ansible techniques to run a local task in a Foreman-templated playbook (e.g. `delegate_to: locahlhost`, `connection: local` etc) causes a crash in the Foreman logging plugin:
2021-03-07T10:03:11 [E] error while dispatching request to runner 9be89c5e-7565-4824-ab5a-1d704d7315de:NoMethodError undefined method `add_output' for nil:NilClass:
/usr/share/gems/gems/foreman-tasks-core-0.3.4/lib/foreman_tasks_core/runner/parent.rb:47:in `publish_data_for'
/usr/share/gems/bundler/gems/foreman_ansible-0d49745fab69/lib/foreman_ansible_core/runner/ansible_runner.rb:66:in `handle_host_event'
Actions