IF you are connecting and NOT spec'ing a connect type I believe it goes
kerberos first, then plaintext/basic.
you would need to check if basic is enabled via powershell (run powershell
as admin to be safe)
winrm get winrm/config/service/auth
and it will return something like;
Auth
Basic = false
Kerberos = true
Negotiate = true
Certificate = false
CredSSP = false
CbtHardeningLevel = Relaxed
In order to make basic/plaintext function do this
PS C:\Windows\system32> winrm set winrm/config/service/auth
'@{Basic="true"}'
Auth
Basic = true
Kerberos = true
Negotiate = true
Certificate = false
CredSSP = false
CbtHardeningLevel = Relaxed
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.
On Wednesday, March 15, 2017 at 6:43:41 PM UTC-4, cupcake wrote:
>
> I feel like with inventory files ive had better luck using = sign
>
> Also the default winrm setting likely has basic auth set to false. if you
> run with -vvvvv it should should winrm debug and can see the auth type
>
> On Monday, March 13, 2017 at 2:31:43 PM UTC-4, Alstar Films wrote:
>>
>> Hi,
>>
>> Can you tell me what format should I be using so that I can correct the
>> file?
>>
>> On Monday, March 13, 2017 at 10:20:24 PM UTC+4, Brian Coca wrote:
>>>
>>> its not yaml format, also if you dont have a space after : its also
>>> incorrect yaml.
>>>
>>>
>>> ----------
>>> Brian Coca
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a98db2d4-fc8d-48af-bdef-a2918544d86b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.