Inventory update based on project and not job
ISSUE TYPE
- Bug Report
COMPONENT NAME
- API
- UI
SUMMARY
We are using AWX 9.1.1 We defined a project named : DEPLOY_DEV for this project, we allowed branch override, and we have not specified any branch.
We defined a job template : DEPLOY_DEV_AUTO this job template ask for branch on launch, which will point to the branch SCM where we have our playbook and our inventory.
We defined an invenotry named: INVENTORY_DEV this inventory is supposed to point to the same branch SCM as job template on run.
Expected Behaviour : When we launch a job based on job template DEPLOY_DEV_AUTO and specify branch "V1" , DEPLOY_DEV and INVENTORY_DEV should be synchronized with branch "V1", then the job is launched
Actual Behaviour : When we launch a job based on job template DEPLOY_DEV_AUTO and specify branch "V1" , DEPLOY_DEV is synchronized with branch "V1",INVENTORY_DEV is synchronized with "master" (since the field branch in project is empty) . it fails, which is normal since it's looking for inventory in master branch. We don't want to put anything in branch field for project since we have a new branch for every job, so a new inventory and a new playbook.
ENVIRONMENT
- AWX version: 9.1.1
Source: ansible/awx