Project

General

Profile

Actions

Bug #32030

closed

Using localhost in a playbook causes a crash

Added by Dominique Quatravaux almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-

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'


Related issues 1 (0 open1 closed)

Related to Ansible - Bug #32188: Verbose log outputs for Ansible jobs are reported to all Hosts present on the Job.ClosedOndřej EzrActions
Actions

Also available in: Atom PDF