ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.54k stars 3.35k forks source link

New playbooks not available in job template dropdown after project sync #11635

Closed packe1bb closed 2 years ago

packe1bb commented 2 years ago

Please confirm the following

Summary

First off, I am completely new to reporting/searching for issues, and as such cannot seem to search for a duplicate (but I tried!) so apologies if this is a duplicate :(

I have noticed behavior where I push new playbooks for new roles to my GitLab project, sync the project in AWX (which is successful), but then when trying to create a new job template for the new role, the playbook is not an option from the dropdown list. However, the top level .yml playbook IS correct syntax (double checked with a YAML linter (which I also have enabled in VSCode). Also, if I create an entirely new GitLab repo and push the exact same code to it and sync with a new project in AWX, the playbooks are available in the dropdown.

AWX version

19.2.2

Installation method

docker on linux

Modifications

no

Ansible version

2.11.3

Operating system

No response

Web browser

Chrome

Steps to reproduce

Create GitLab repo and a playbook using roles, sync project to repo, create job template from the project and select top level playbook from the dropdown. Create second playbook in same repo, sync project to repo again, and attempt to create a job template for the new playbook using the dropdown for playbooks new_playbook new_repo new_selectable_playbooks original_playbook original_repo original_selectable_playbooks projects .

Expected results

When new playbooks are pushed to GitLab, they should be selectable in new job templates after project sync.

Actual results

New playbooks are not selectable, unless new repo is made containing the same playbooks and synced to AWX.

Additional information

Behavior is present in fresh installs of FireFox and Edge browsers as well.

nixocio commented 2 years ago

Hello,

We have not heard of any other report of this issue, if other people on the mail listing are seeing this, we can re-open.

If you need help troubleshooting or are looking for help using AWX, try our mailing list or IRC channel:

ansible-awx on https://libera.chat/

https://groups.google.com/forum/#!forum/awx-project

Ganeshk1994 commented 2 weeks ago

Hello @nixocio ,

We are facing the same issue as @packe1bb . Can you please help on troubleshooting this issue.