Hi there! I'm working on using my Ansible inventory in Rundeck.
I'm able to import the inventory to Rundeck. All Nodes are showing up.
When I try to run a command on a Node, I got an Ansible Inventory error.
Environment
Rundeck Version 3.4.3-20210823
Ansible 2.75
Installed on CentOS 7
The Ansible Inventory is a .JSON file which is prepared by a custom Python inventory plugin.
Error from Ansible:
[WARNING]: * Failed to parse /tmp/rundeck/ansible-inventory6463188845120896935.json with json plugin: JSON inventory has invalid structure, it should contain an "inventory" key.
[WARNING]: Unable to parse /tmp/rundeck/ansible-inventory6463188845120896935.json 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'
[WARNING]: Could not match supplied host pattern, ignoring: CENSORED
Added -i /git/ansible/environments/CENSORED/inventory/inventory.json to Extra Ansible arguments in Nodes configuration
Added /git/ansible/environments/CENSORED/inventory/inventory.json as option under ansible inventory File path in Nodes configuration
Does anybody might have a tip, how to resolve this issue? What is also not clear to me, is the fact Rundeck is locking for /tmp/rundeck/ansible-inventory6463188845120896935.json and not my defined json in the config?
Hi there! I'm working on using my Ansible inventory in Rundeck.
I'm able to import the inventory to Rundeck. All Nodes are showing up. When I try to run a command on a Node, I got an Ansible Inventory error.
Environment
Error from Ansible:
project.properties
Steps taken
-i /git/ansible/environments/CENSORED/inventory/inventory.json
toExtra Ansible arguments
in Nodes configuration/git/ansible/environments/CENSORED/inventory/inventory.json
as option underansible inventory File path
in Nodes configurationDoes anybody might have a tip, how to resolve this issue? What is also not clear to me, is the fact Rundeck is locking for /tmp/rundeck/ansible-inventory6463188845120896935.json and not my defined json in the config?
Thank you! Oliver