Open nikhjain14 opened 1 year ago
I am finding that the error message may be mentioning organization but my error appears to stem from the source_project not being found:
Fails with: TASK [Ensure that the inventory source is using CMDB_Inventory project] **** fatal: [localhost]: FAILED! => {"changed": false, "msg": "The specified source project, {'organization': 16}, was not found."}
I have tried "CMDB_Inventory" and 843 (the project's id) as well as the api link as shown above but I consistently get this organization error which, like I mention, I think is a red herring. If I omit the organization name the the error is: TASK [Ensure that the inventory source is using CMDB_Inventory project] **** fatal: [localhost]: FAILED! => {"changed": false, "msg": "The specified source project, {}, was not found."}
Please confirm the following
security@ansible.com
instead.)Bug Summary
While creating the inventory source under created inventory using "inventory_soruce" module, we don't require to mention the organization as the organization field is not present while creating the inventory source.
Link: https://docs.ansible.com/ansible/latest/collections/awx/awx/inventory_source_module.html#ansible-collections-awx-awx-inventory-source-module
Examples
AWX version
4.4
Select the relevant components
Installation method
N/A
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
We used the below playbooks to create an inventory source under created inventory.
Non-working:
Working:
Expected results
Playbook should be able to create the inventory source properly under existing inventory.
Actual results
Playbook was unable to create the inventory source and gave us the below error.
Additional information
No response