ansible group not working

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

(attachments)

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

(attachments)

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

(attachments)

I am using kerberos. this is my group_vars file.

what am i missing?

i dont understand

(attachments)


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

(attachments)

You probably want to put it in BOTH groups

yes that was it! Thank you