I am definitely using NTLM for my windows hosts. I have the following packages
installed:
Requests 2.10.0
Requests-kerberos 0.10.0
Requests-ntlm 0.3.0
Pywinrm 0.2.0
Just make sure you set “ansible_winrm_transport: ntlm” set in your vars.
You should also set your remote_user in the
Hi Karol,
Yes, with pywinrm 0.2 you can use NTLM to connect to your windows hosts. Just
as a side note this doesn’t have a lot to do with ansibile itself as it will
only use whatever method pywinrm supports. To have NTLM support you should
follow the pywinrm docs ( If I’m not wrong the only
Hi,
I think instead writing a script that then writes an inventory file, just write
a dynamic inventory and pass that as inventory file to ansible. I believe it
will make your life easier in the long run.
—
A.
> On 1 Jul 2016, at 07:50, Arpit Ghiya wrote:
>
> Hello
>
Yes,
That would indeed cause the opposite problem when creating groups! Didn’t
really think about that, was focusing on the deletion
Yes, probably adding a ‘local_only’ to both the modules makes more sense, and
should keep the return correct in both cases.
Thanks,
Andrea
> On 18 Sep 2015,
Hi list,
Sorry for the probably confusing subject, but I don’t really know how to say
that better, I’ll try to explain better:
In my environment I have a requirement to remove certain local groups ( that
have now been moved to remote groups ) and found out the behaviour of the
module is quite
Hi,
no unfortunatelyou cannot pass any variable to the dynamic inventory, it will
be called automatically by ansible with the host or list argument.
The only way you have is either setting env variables or having a config file.
--
Andrea
- Reply message -
From: Ritesh Shetty
Hi,
you just have to add “vars” to the group name, so assuming “computenodes” is
your group you would have something like:
computenodes: {
hosts: [
192.168.0.68
],
“vars”:{
“var1”: “Var”,
“var2”: 2
}
}
Have a look here: