AWX only one playbook in Dopdown menu

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.


Thank you in advance!!

@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:

---
- 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.

1 Like

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

1 Like


A verv big thank you!

1 Like

@gothsome So nice! My pleasure.

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

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

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