Re: [ansible-project] NTLM Delegation

2016-07-18 Thread Andrea Tartaglia
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

Re: [ansible-project] NTLM Delegation

2016-07-18 Thread Andrea Tartaglia
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

Re: [ansible-project] Running Ansible playbook without an inventory file (use other source for getting inventory)

2016-07-01 Thread Andrea Tartaglia
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 >

Re: [ansible-project] group module fails when trying to delete non local group

2015-09-21 Thread Andrea Tartaglia
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,

[ansible-project] group module fails when trying to delete non local group

2015-09-17 Thread Andrea Tartaglia
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

Re: [ansible-project] Can the -i option of dynamic inventory accept a json directly instead of a executable file ?

2015-05-14 Thread Andrea Tartaglia
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

Re: [ansible-project] running playbook for windows plus dynamic inventory and dynamic groups_vars

2015-05-13 Thread Andrea Tartaglia
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: