any idea why the below is failing for my hosts pa-mgt01?
check why the windows box ansible doing ssh … that is your clue
Hello,
Did you check if your inventory is set up properly? you require to specify the connection mode for windows hosts.
You should read the doc first of all:
https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#inventory-options
and then check with ansible-inventory if your inventory has all the appropriated vars.
Luca
for the host pa-mgt01 when i put it in windows group in the host file it works. when i put put in [mgmt] it does not work
Hello,
read the doc, please. Your inventory setup is missing some variables for that group.
https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#inventory-options
Luca
Hello,
you’re applying that vars to windows group only, so moving that host to another group doesn’t also move the connection variables. You should study more in depth how inventories and variables work.
Luca
You probably want to put it in BOTH groups
yes that was it! Thank you