# AWX only one playbook in Dopdown menu

**URL:** <https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [February 6, 2024, 11:14am UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697 "2024-02-06T11:14:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [February 6, 2024, 11:14am UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/1 "2024-02-06T11:14:25Z")

</div>

Hello!  
im new to AWX.  
I have for testing everything in a GitHub Repo.  
I successfull created playbook which shows hosts online, but when in want to add another playbok in the same directory at GitHub it only lists the first playbook.  
I new i had to enter the file name when i want to import hosts from yaml files, but i cant enter the name because it disappears again.

 ![grafik](https://us1.discourse-cdn.com/ansible/original/2X/b/b217bc60b3e3cc17546735f221bab082afc24b88.png)  
Thank you in advance!!

---

<div class="post-metadata">

**Author:** ![akira6592](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akira6592/32/222_2.png) [@akira6592](https://forum.ansible.com/u/akira6592)\
**Post date:** [February 6, 2024, 11:42am UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/2 "2024-02-06T11:42:37Z")

</div>

@gothsome Hello!  
`addsshkey.yaml` is not a Playbook and cannot be specified in the job template.

Try modifying it to the Playbook by specifying `hosts` keyword, etc., in the same way as `hostonline.yaml`.

Example:

```yaml
---
- name: Set authorized keys
  hosts: all
  gather_facts: false
  
  tasks:
    - name: Set authorized keys taken from url
      ansible.posix.authorized_key:
        user: charlietteeiiiaaste
        state: present
        key: https://github.com/gsg-git/awx_pub/blob/main/awxtestpub.key

```

Then, after sync the project, try creating the job template again.

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [February 6, 2024, 12:01pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/3 "2024-02-06T12:01:47Z")

</div>

> [@akira6592](#):
>
> ```auto
> ---
> - name: Set authorized keys
> hosts: all
> gather_facts: false
>   
> tasks:
> - name: Set authorized keys taken from url
> ansible.posix.authorized_key:
> user: charlietteeiiiaaste
> state: present
> key: https://github.com/gsg-git/awx_pub/blob/main/awxtestpub.key
> 
> ```

Yeah i think thats it - in the hostonline i have those lines too!

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [February 6, 2024, 12:04pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/4 "2024-02-06T12:04:40Z")

</div>

![grafik](https://us1.discourse-cdn.com/ansible/original/2X/5/50f67d7b60323dd3f731c93a2ad5d37d63a7ee63.png)  
A verv big thank you!

---

<div class="post-metadata">

**Author:** ![akira6592](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akira6592/32/222_2.png) [@akira6592](https://forum.ansible.com/u/akira6592)\
**Post date:** [February 6, 2024, 12:06pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/5 "2024-02-06T12:06:17Z")

</div>

@gothsome So nice! My pleasure.

---

<div class="post-metadata">

**Author:** ![gothsome](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gothsome](https://forum.ansible.com/u/gothsome)\
**Post date:** [February 6, 2024, 12:40pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/6 "2024-02-06T12:40:25Z")

</div>

Now the default playbook from ansible fails, but ill make another issue.

---

<div class="post-metadata">

**Author:** ![akira6592](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akira6592/32/222_2.png) [@akira6592](https://forum.ansible.com/u/akira6592)\
**Post date:** [February 6, 2024, 12:44pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/7 "2024-02-06T12:44:52Z")

</div>

If you can not solve the another issue, please post as new topic 😀 😀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 7, 2024, 12:45pm UTC](https://forum.ansible.com/t/awx-only-one-playbook-in-dopdown-menu/3697/8 "2024-03-07T12:45:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
