Ansible role run via Remote Job trough Capsule fails with parsing error even when remote execution is working seamlessly on Red Hat Satellite 6.
Issue
- Running
Ansible Roles
via Remote Jobs through Capsule from Red Hat Satellite WebUI using remote execution fails even when the remote execution itself is working like a charm. - The permission denied on
/tmp
error is encountered while running ansible roles which eventually results in parsing errorFailed to parse Inventory
. -
Running Ansible roles via Remote Jobs through Capsule gives the error
unable to parse inverntory source
as mentioned below:[WARNING]: * Failed to parse /tmp/xyz/inventory/hosts with script plugin: problem running /tmp/xyz/inventory/hosts --list ([Errno 13] Permission denied) [WARNING]: * Failed to parse /tmp/xyz/inventory/hosts with yaml plugin: YAML inventory has invalid structure, it should be a dictionary, got: <class 'ansible.parsing.yaml.objects.AnsibleUnicode'> [WARNING]: * Failed to parse /tmp/xyz/inventory/hosts with ini plugin: /tmp/xyz/inventory/hosts:2: Expected key=value host variable assignment, got: /tmp/xyz/data [WARNING]: Unable to parse /tmp/xyz/inventory/hosts as an inventory source [WARNING]: Unable to parse /tmp/xyz/inventory as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' PLAY [all] ********************************************************************* skipping: no hosts matched PLAY RECAP ********************************************************************* Exit status: 0
Environment
- Red Hat Satellite 6.7.
- Red Hat Capsule 6.7.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.