ansible/awx

"Playbook not found for project" error when the playbook exist but is invalid

Open

#6,842 opened on Apr 27, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (3,333 forks)batch import
Hacktoberfestcomponent:apigood first issuetype:enhancement

Repository metrics

Stars
 (13,071 stars)
PR merge metrics
 (Avg merge 24d 6h) (30 merged PRs in 30d)

Description

ISSUE TYPE

When a playbook is not valid but its filename is specified using a rest api enpoint, (e.g using job_templates endpoint) the system returns "Playbook not found for project".

SUMMARY

Error "Playbook not found for project", suggest users that yaml file doesn't exist at specified playbook path. In this particular situation error message like "Playbook specified doesn't contain any plays" or "Playbook specified is not a valid playbook" would clearly suggest user where problem lies.

Contributor guide