# Problem when i want to choose a playbook for my job

**URL:** <https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 8, 2018, 12:49pm UTC](https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294 "2018-08-08T12:49:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel\_desseaux](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@samuel\_desseaux](https://forum.ansible.com/u/samuel_desseaux)\
**Post date:** [August 8, 2018, 12:49pm UTC](https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294/1 "2018-08-08T12:49:23Z")

</div>

Hello,

I’ve a problem with AWX.

When i create a job and link one to a playbook, there’s a problem.  
When i click on playbook, it shows me only 2 playbooks whereas i’ve more than 2 (10 exactly).

Due to this problem, i can’t create all my jobs.

Does someone have an idea?

Best regards

Samuel

---

<div class="post-metadata">

**Author:** ![Exequiel](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@Exequiel](https://forum.ansible.com/u/Exequiel)\
**Post date:** [August 8, 2018, 2:03pm UTC](https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294/2 "2018-08-08T14:03:34Z")

</div>

I had a similar problem last week.  
When I had 3 playbooks on my gitlab (was a new project) and the template only showed me 1.  
The only way I found to fix this was remove all content from the project (GIT) and commit a new version.  
Then sync the project from AWX and solved the problem.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [August 8, 2018, 3:33pm UTC](https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294/3 "2018-08-08T15:33:38Z")

</div>

Samuel,

Are you able to share the contents of your playbook? We determine a file to be playbook if:

- filename ends in .yml or .yaml
- starts with $ANSIBLE\_VAULT or starts with hosts, include, or import\_playbook (see regex [https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L16](https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L16) )

If you can’t share the contents of the entire playbooks that aren’t matching, maybe you can share the first few lines?

[https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L38](https://github.com/ansible/awx/blob/devel/awx/main/utils/ansible.py#L38)

---

<div class="post-metadata">

**Author:** ![samuel\_desseaux](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@samuel\_desseaux](https://forum.ansible.com/u/samuel_desseaux)\
**Post date:** [August 9, 2018, 9:00am UTC](https://forum.ansible.com/t/problem-when-i-want-to-choose-a-playbook-for-my-job/28294/4 "2018-08-09T09:00:18Z")

</div>

Hello,

Problem has been solved. It was a problem with the content of the file (not good written yaml).

Best regards

Samuel
