-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory sync from ini file in git repo/project fails when submodules are tracked #14687
Comments
Hello, can you set up a public project repo for us to try out this set up? This will ease troubleshooting. |
Thanks for looking into this. I've setup two public repos. Ansible_base with the ansible_role as a submodule. Ansible_base contains a hosts.ini with IP 1.2.3.4 |
We have the same issue with sourcing inventory from submodules in AAP2.3 |
Having same issue AWX 24.6.2 |
Same issue |
same issue |
I'm not seeing a Regardless, I think I'm able to recreate the project update failure
|
@chrismeyersfsu I believe the problem is this: The submodule repository uses |
Please confirm the following
[email protected]
instead.)Bug Summary
Syncing an inventory from a git project fails, if the git submodules are tracked. The project itself syncs regardless if submodule tracking is enabled or disabled. The problem is only the inventory source job.
Example repo/project containing an inventory file and a submodule. The parse of inventory.ini fails if the submodule is tracked.
AWX version
2.7.2
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
ansible [core 2.15.4]
Operating system
AlmaLinux 9.3
Web browser
Firefox
Steps to reproduce
Expected results
Hosts from the file should be added to the AWX inventory.
Actual results
The sync fails.
Additional information
Output from job:
Previous Task Failed: {"job_type": "project_update", "job_name": "USERNAME/REPO @ inventory-tests", "job_id": "993"}
The text was updated successfully, but these errors were encountered: