Job failed with "ERROR! No inventory was Parsed" in Ansible Automation Platform Automation Mesh Instance (Receptor)

Solution Verified - Updated -

Issue

  • AAP fails running a job or template with the following error:

    [WARNING]: * Failed to parse /runner/inventory/hosts with script plugin: problem running /runner/inventory/hosts --list ([Errno 13] Permission denied: '/runner/inventory/hosts')
    [WARNING]: * Failed to parse /runner/inventory/hosts with yaml plugin: We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. did not find expected key The error appears to be in '/runner/inventory/hosts': line 3, column 2864, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: 
    ...
    ...
    ...
    
    ^ here We could be wrong, but this one looks like it might be an issue with unbalanced quotes. If starting a value with a quote, make sure the line ends with the same set of quotes. For instance this arbitrary example: foo: "bad" "wolf" Could be written as:       foo: '"bad" "wolf"'
    [WARNING]: * Failed to parse /runner/inventory/hosts with ini plugin: host range must be begin:end or begin:end:step
    [WARNING]: Unable to parse /runner/inventory/hosts as an inventory source
    ERROR! No inventory was parsed, please check your configuration and options.
    

Environment

  • Ansible Automation Platform (AAP) 2 or later
  • Job ran on AAP Automation Mesh Instance (Receptor)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content