hi all,
We are using AWX to perform ansible jobs. I need help because I wanted to apply a restart schedule for a set of linux and windows vms. for linux we have a local account with ssh key and for windows we have a service account of AD.
So how can I run my single job handling windows and linux hosts in single playbook?
(i can only add once machine credential in a AWX template).
Regards,
Thirumalai.
I would split your inventory into groups by platform since Windows login requires a different method. For the Windows group you can configure the login method for Windows as needed to use RDP.
You could have two plays in the playbook that target the different groups in the “hosts” tag.
Walter
I can create a group in inventory but how can I use credentials for that? You ask me to have two different playbooks.
if its single playbook how can i mention credentials for windows and linux separately