This is literally my first day using Ansible and I am trying to connect to one of my windows 2012 host and using win_ping. I have a control server using Centos. I encountered a number of issues before I got to this point but now when I run ansible windows -i host.yml -m win_ping the error I get is ERROR! Unexpected Exception: dictionary update sequence element #0 has length 1; 2 is required
No idea where to look i even did a -vvvv and it says the same thing. Below are my 2 yml files
If i dont give a space after : in the windows.yml file then i get this error ““msg": “plaintext: the specified credentials were rejected by the server”,” (Looks like a space is taken as a character entry” and thats why I removed the space after :
Now i am getting the error "ERROR! Unexpected Exception: dictionary update sequence element #0 has length 1; 2 is required"
Also what do u you mean when you say the the first one is not a yaml file?
So basic = plaintext meaning you are sending your credentials in the clear. for testing this is probably OK, but realize that if you are going http port 5985 anyone can get the password pretty darn easy with a packet capture. I don’t believe setting transport to ssl does anything in basic mode either.
Getting kerberos setup is more ideal for the long run, plus you wont have to create or embed some local account on all your machines.