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!!
akira6592
(Akira Yokochi)
February 6, 2024, 11:42am
2
@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
akira6592
(Akira Yokochi)
February 6, 2024, 12:06pm
5
@gothsome So nice! My pleasure.
Now the default playbook from ansible fails, but ill make another issue.
akira6592
(Akira Yokochi)
February 6, 2024, 12:44pm
7
If you can not solve the another issue, please post as new topic
system
(system)
Closed
March 7, 2024, 12:45pm
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.