Problem: After upgrading from 1.24.0 to 1.24.2 Katello/Foreman Ansible no longer executes the playbook as expected.
Expected outcome:. Get hosts facts and execute playbook against the host
Foreman and Proxy versions: 1.24.2
Foreman and Proxy plugin versions: 1.24 Katello: 3.14.1
Distribution and version:
Other relevant data:
CentOS 7.7.1908
Foreman prod logs
2020-03-16T10:42:35 [I|app|5bd6e225] Completed 200 OK in 26ms (Views: 0.2ms | ActiveRecord: 3.0ms)
2020-03-16T10:42:35 [I|app|4a8f1444] Started POST "/foreman_tasks/api/tasks/callback" for 10.9.64.196 at 2020-03-16 10:42:35 -0500
2020-03-16T10:42:35 [I|app|4a8f1444] Processing by ForemanTasks::Api::TasksController#callback as */*
2020-03-16T10:42:35 [I|app|4a8f1444] Parameters: {"callbacks"=>[{"callback"=>{"task_id"=>"c57b9a2d-86d2-4561-ba25-18d52418946b", "step_id"=>3}, "data"=>{"result"=>[{"output_type"=>"stdout", "output"=>"[WARNING]: * Failed to parse /tmp/d20200316-24411-1rj3tcl/inventory/hosts with\n", "timestamp"=>1584373346.8121903}, {"output_type"=>"stdout", "output"=>"script plugin: failed to parse executable inventory script results from\n", "timestamp"=>1584373346.812233}, {"output_type"=>"stdout", "output"=>"/tmp/d20200316-24411-1rj3tcl/inventory/hosts: Syntax Error while loading YAML.\n", "timestamp"=>1584373346.812282}, {"output_type"=>"stdout", "output"=>"found unknown escape character The error appears to be in '<string>': line 1,\n", "timestamp"=>1584373346.8123298}, {"output_type"=>"stdout", "output"=>"column 2839, but may be elsewhere in the file depending on the exact syntax\n", "timestamp"=>1584373346.8123689}, {"output_type"=>"stdout", "output"=>"problem.\n", "timestamp"=>1584373346.812404}, {"output_type"=>"stdout", "output"=>"[WARNING]: * Failed to parse /tmp/d20200316-24411-1rj3tcl/inventory/hosts with\n", "timestamp"=>1584373346.8124557}, {"output_type"=>"stdout", "output"=>"yaml plugin: YAML inventory has invalid structure, it should be a dictionary,\n", "timestamp"=>1584373346.8124921}, {"output_type"=>"stdout", "output"=>"got: <class 'ansible.parsing.yaml.objects.AnsibleUnicode'>\n", "timestamp"=>1584373346.8125274}, {"output_type"=>"stdout", "output"=>"[WARNING]: * Failed to parse /tmp/d20200316-24411-1rj3tcl/inventory/hosts with\n", "timestamp"=>1584373346.8125622}, {"output_type"=>"stdout", "output"=>"ini plugin: /tmp/d20200316-24411-1rj3tcl/inventory/hosts:2: Expected key=value\n", "timestamp"=>1584373346.8125975}, {"output_type"=>"stdout", "output"=>"host variable assignment, got: <<-EOS\n", "timestamp"=>1584373346.8126442}, {"output_type"=>"stdout", "output"=>"[WARNING]: Unable to parse /tmp/d20200316-24411-1rj3tcl/inventory/hosts as an\n", "timestamp"=>1584373346.8126807}, {"output_type"=>"stdout", "output"=>"inventory source\n", "timestamp"=>1584373346.8127146}, {"output_type"=>"stdout", "output"=>"[WARNING]: Unable to parse /tmp/d20200316-24411-1rj3tcl/inventory as an\n", "timestamp"=>1584373346.8127491}, {"output_type"=>"stdout", "output"=>"inventory source\n", "timestamp"=>1584373346.812805}, {"output_type"=>"stdout", "output"=>"[WARNING]: No inventory was parsed, only implicit localhost is available\n", "timestamp"=>1584373346.8128407}, {"output_type"=>"stdout", "output"=>"[WARNING]: provided hosts list is empty, only localhost is available. Note that\n", "timestamp"=>1584373346.8128757}, {"output_type"=>"stdout", "output"=>"the implicit localhost does not match 'all'\n", "timestamp"=>1584373346.81291}, {"output_type"=>"stdout", "output"=>"\n", "timestamp"=>1584373347.815868}, {"output_type"=>"stdout", "output"=>"\r\nPLAY [all] *********************************************************************\n", "timestamp"=>1584373347.8159304}, {"output_type"=>"stdout", "output"=>"skipping: no hosts matched\n", "timestamp"=>1584373347.8159819}, {"output_type"=>"stdout", "output"=>"PLAY RECAP *********************************************************************\n", "timestamp"=>1584373347.8160594}], "exit_status"=>0}}], "task"=>{}}