[ansible-project] Ansible 2.5.3 is available

2018-05-17 Thread mattdavi
Hi all- we're happy to announce that the general release of Ansible 2.5.3 
is now available! 


How do you get it?
--

$ pip install ansible==2.5.3 --user

The tar.gz of the release can be found here:

https://releases.ansible.com/ansible/ansible-2.5.3.tar.gz
SHA256: 0b34126dad0a77fce220d264ba5179221bbff82af5fda5de197dffb96171749c


What's new in 2.5.3?
--

The 2.5.3 release is a maintenance release containing numerous bugfixes. 
The full changelog is at:

https://github.com/ansible/ansible/blob/stable-2.5/changelogs/CHANGELOG-v2.5.rst


What's the schedule for future 2.5 maintenance releases?
--

Future 2.5 maintenance releases will occur approximately every 2 weeks.


We've published a porting guide at 
https://docs.ansible.com/ansible/2.5/porting_guides/porting_guide_2.5.html 
to help migrate your content to 2.5. If you discover any errors, or if you 
see any regressions from playbooks which work on 2.4.x and prior, please 
open a Github issue, and be sure to mention you're using 2.5.3.


Thanks!

Matt Davis (@nitzmahone)
Ansible Core Engineering / 2.5 release manager

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7edcf0ed-a5f1-4fd1-b191-02e0aa892779%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Cisco jump host

2018-05-17 Thread Tcpip
Hi all,

I'm using Ansible for network tasks, I would like to know if I can use 
Ansible to configure a network device having a device in the middle.

This is what I mean.


Ansible Server  ---> Cisco Device ---> Target.


I would like to know if this is possible.

thanks. all


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0de24a9-4753-4d1d-8fc7-2494b02fbeca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Powershell script failing when run in playbook - works on other servers and runs ok manually on target host - cannot find path

2018-05-17 Thread java_cat33
OK - issue resolved was targeting wrong server in inventory file!

On Friday, May 18, 2018 at 12:05:15 PM UTC+12, java_cat33 wrote:
>
> The play copies a powershell script and runs it on the target - the script 
> looks up files in C:\Temp. This path definitely exists.
>
> I can run this play without issues against other test servers - now that I 
> want to run this play on the actual server I want to configure I get the 
> below error.
>
> fatal: [servername]: FAILED! => {"changed": true, "msg": "non-zero return 
> code", "rc": 1, "stderr": "Get-ChildItem : Cannot find path 'C:\\Temp' 
> because it does not exist.\r\nAt C:\\Users\...
>
> Running the same Powershell script locally on the target server returns a 
> json file - no errors thrown.
>
> WinRM config etc is all ok.
>
> Let me know if you need more info...
>
> Thanks!
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e0ef7525-2375-4e4e-bee9-98a5350f7ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Powershell script failing when run in playbook - works on other servers and runs ok manually on target host - cannot find path

2018-05-17 Thread java_cat33
The play copies a powershell script and runs it on the target - the script 
looks up files in C:\Temp. This path definitely exists.

I can run this play without issues against other test servers - now that I 
want to run this play on the actual server I want to configure I get the 
below error.

fatal: [servername]: FAILED! => {"changed": true, "msg": "non-zero return 
code", "rc": 1, "stderr": "Get-ChildItem : Cannot find path 'C:\\Temp' 
because it does not exist.\r\nAt C:\\Users\...

Running the same Powershell script locally on the target server returns a 
json file - no errors thrown.

WinRM config etc is all ok.

Let me know if you need more info...

Thanks!

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3651d398-1006-45fa-bd65-0f69672b639a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: win_updates fail

2018-05-17 Thread Jordan Borean
Sorry I meant 2.5.3.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3ddf4853-42cb-4509-a4ff-37c6353069ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: win_updates fail

2018-05-17 Thread Jordan Borean
It will be in the 2.6.0 release but I also backported it for the 2.5.4 release 
which is imminent. In saying that it won’t actually fix the issue but it will 
give you the result code as to why the download failed. With this result code 
we can proceed further to trying to find out what is happening.

Thanks

Jordan

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/64081b07-bee8-4278-83df-e424464237f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [ansible-project] Re: Installing Java JRE on windows 2016 core

2018-05-17 Thread william.dossett
Hi,  I was unable to get the JRE to install.  I think it has something to do 
with it trying to register javaWS in the registry with browsers and as this is 
core there is of course no browser.  

 

I did however get the JDK to install… I used the win_command – but I think I 
will go back and attempt with win_package again now as I want to try and keep 
this as clean as possible.

 

Thanks for your suggesting that the JDK worked for you!

 

Regards

Bill

 

 

From: ansible-project@googlegroups.com  On 
Behalf Of Jordan Borean
Sent: Wednesday, May 16, 2018 5:18 PM
To: Ansible Project 
Subject: [ansible-project] Re: Installing Java JRE on windows 2016 core

 

Hi

 

Without actually seeing the server itself I can't give you much but a quick 
Google search shows there is some compatibilities with the JRE and JDK 
resulting in the rc of 1603 
https://www.ghacks.net/2015/06/26/fixing-java-update-did-not-complete-error-code-1603/.
 I've only installed the JDK before but the JRE should be similar, you don't 
need to use a batch file, something like this should work

 

- name: template out JRE install config
  win_template:
src: jre-install.cfg
dest: jre-install.cfg  # better if you used the absolute path here and below

- name: install Java JRE
  win_command: jre-8u112-x64.exe INSTALLCFG=jre-install.cfg


I have no idea with the install.cfg format should be but it needs to at least 
specify that the installer is run in silent or quiet mode with no prompts or 
else it will hang forever. Whether that is implicit or needs to be explicit I'm 
not sure.

 

Thanks

 

Jordna

-- 
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 ansible-project+unsubscr...@googlegroups.com 
 .
To post to this group, send email to ansible-project@googlegroups.com 
 .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c3ff1f89-df8c-4151-9f20-66276cee58b4%40googlegroups.com
 

 .
For more options, visit https://groups.google.com/d/optout.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/36ce01d3ee0f%24efdcc720%24cf965560%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Host lists, facts and handlers

2018-05-17 Thread Marc Haber
Hi Kai,

(apology for taking six weeks to answer from other mail applies hier as
well)

On Tue, Apr 03, 2018 at 09:58:56PM +0200, Kai Stian Olstad wrote:
> On 02.04.2018 16:53, Marc Haber wrote:
> > On Sat, Mar 31, 2018 at 09:39:37PM +0200, Kai Stian Olstad wrote:
> > > On Saturday, 31 March 2018 20.35.46 CEST Marc Haber wrote:
> > > > First ansible run:
> > > > [51/5036]mh@drop:~/git/zgansibletest (master * u+1) (crm) $ 
> > > > ansible-playbook --ask-become-pass --inventory=hosts.yml site.yml
> > > 
> > > 
> > > 
> > > > TASK [common : zda-sid-mc.list] 
> > > > *
> > > > changed: [sid01]
> > > > changed: [sid02]
> > > >
> > > > RUNNING HANDLER [common : apt update] 
> > > > ***
> > > > changed: [sid01]
> > > 
> > > Here is the problem, the task zda-sid-mc.list is changed on both
> > > host but only one of them run the handler.
> > > Why this happen i don't know but at fist glance it looks like a bug.
> > > What is your Ansible version?
> > 
> > All systems in the test setup are Debian unstable, which ansible 2.5.0.
> > 
> > > You could also try more detailed logging to see if that gives more
> > > info:
> > >   ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook -vvv
> > > --ask-become-pass --inventory=hosts.yml site.yml
> > 
> > That's 98 kB, too much for this list. I have uploadd to
> > http://q.bofh.de/~mh/stuff/ansible-log.txt
> > 
> > What confuses me is that no handling of the presentsourceslistfiles
> > variable is logged at all.
> 
> 
> The tasks run, but you don't see the content of the variable, you would need
> to use debug for that.

So even with -vvv I won't see variables being handled without explicit
debug being written down?

> And the log show it handles both notify but only one host is added by
> add_host.

But why?

> Your task "delete source.list.d files" is on role zzhandleapt so that will
> only be run/deleted when the notify is run, and notify is on zda-sid-mc.list
> task.

That notify is a leftover from the original try; the current version is
meant to built a list of hosts that need "apt update" in the
apt_action_hosts lists, which the zzhandleapt being called conditionally
for all hosts in the list from the site.yml.

> If the only go is to run apt update, why don't you just notify apt module
> directly?

Because that will run apt update multiple times per host, resulting in
wasted time, and not all jobs called this way are idempotent.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20180517165800.rcltcovpq3rliyjt%40torres.zugschlus.de.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Host lists, facts and handlers

2018-05-17 Thread Marc Haber
Hi Kai,

sorry for not getting back to you (and this list) any earlier; the
ansible stuff is just something I'm trying to grasp, and the paid-for
stuff kept prioritizing itself over and over again.

On Tue, Apr 03, 2018 at 10:07:08PM +0200, Kai Stian Olstad wrote:
> I would say don't use add_host it will just complicate thing for you.
> You had a solution that work that you posted on this list back in November,
> why not just use that one? It didn't use add_host.

The November version kept calling apt update over and over again for
every change it did, and while this is only time-consuming for apt[1],
it might be contraproductive in some other use cases of this construct.
Remember, I'm trying to build a standard idiom, and the apt case ist
just an easy example that anybody can easily try.

Greetings
Marc

[1] execution speed is currently my main beef with ansible, so I'd like
my code not be the fault for constant annoyance about things being slow.


-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20180517164516.q2t2llwbhaq3quas%40torres.zugschlus.de.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible and Active Directory DNS updates

2018-05-17 Thread ADB101
Hi

We're using MS Active Directory to provide DNS resolution. I need to be 
able to add DNS entries to Active Directory but, not being a MS-techie, I'm 
not sure about the technicalities of doing so...The nsupdate 
 module seems to 
do what I need but does anyone know of a "best practice" document or guide 
to implementing the module against MS AD? I am basically trying to get as 
much information as possible before tackling the MS Consultant about using 
Ansible to update his precious AD-DNS (he's not keen!!)

Many thanks,
Aidan

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/78caeecf-8308-4bb5-add6-5efc20ccdc48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: azure_rm_virtualmachine: error to import AzureRMModuleBase

2018-05-17 Thread Irfan Sayed
please suggest 

On Wednesday, May 16, 2018 at 5:04:34 PM UTC+2, Irfan Sayed wrote:

> yes. I did that already and here is the output.
>
> [root@centos]# pip install packaging
> Requirement already satisfied (use --upgrade to upgrade): packaging in 
> /usr/lib/python2.7/site-packages
>
>
> On Wednesday, May 16, 2018 at 4:33:57 PM UTC+2, Nick Rogers wrote:
>
>> Have you tried running
>>
>> pip install packaging
>>
>> On Wednesday, May 16, 2018 at 8:43:06 AM UTC-5, Irfan Sayed wrote:
>>>
>>> please suggest. I m stuck 
>>>
>>> On Wednesday, May 16, 2018 at 10:05:08 AM UTC+2, Irfan Sayed wrote:

 Hello,

 I am trying to create the azure VM using ansible module : 
 azure_rm_virtualmachine
 document referred : 
 *https://docs.ansible.com/ansible/2.4/azure_rm_virtualmachine_module.html* 
 


 *Actual error*

 TASK [azure_vm_create : Create azure vm] 
 
 fatal: [worker1]: FAILED! => {"changed": false, "module_stderr": 
 "Shared connection to worker1 closed.\r\n", "module_stdout": "Traceback 
 (most recent call last):\r\n File 
 "/tmp/ansible_3PPl_f/ansible_module_azure_rm_virtualmachine.py", line 556, 
 in \r\n from ansible.module_utils.azure_rm_common import 
 AzureRMModuleBase, 
 azure_id_to_dict\r\n File 
 "/tmp/ansible_3PPl_f/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py",
  
 line 28, in \r\nImportError: No module named packaging.version\r\n", 
 "msg": 
 "MODULE FAILURE", "rc": 0}

 *Environment :*
 Ansible version : ansible 2.4.2.0
 python version = 2.7.5
 Ansible controller machine : centos 7
 ansible managed node : centos 7


 *azure packages :*
 python2-msrestazure-0.4.21-1.el7.noarch
 azure-repo-svc-1.0-0.el7.centos.noarch
 python2-azure-sdk-2.0.0-2.el7.noarch


 *expected behavior :*
 provision the VM without any issue


 I am not getting what is the issue. my other playbooks are just working 
 fine. do I need to install any other dependency OR module ??


 please suggest.

  

 Regards,

>>>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1560a792-635f-4384-8ee4-1d891abb5ffb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: win_updates fail

2018-05-17 Thread Nico
Hi Jordan,

Thanks. When will this bug fix be included in a public ansible version? 

onsdag den 16. maj 2018 kl. 22.56.52 UTC+2 skrev Jordan Borean:
>
> I've raised a PR to fix this issue 
> https://github.com/ansible/ansible/pull/40283, if you want you can try it 
> out and see what is happening. Otherwise you can specify the log_path and 
> it should show the error that occurred in the log file.
>
> Thanks
>
> Jordan
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f805940-e5e2-45f9-840b-bbff536cda83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: File copy/Create folder on Windows server based upon json output from Powershell

2018-05-17 Thread Lee Drew
Cool. Thanks Jordan. Works a treat.

On Thu, 17 May 2018, 7:13 PM Jordan Borean,  wrote:

> Yep, I would create a hashtable, convert that to JSON and output that.
> That way you can parse that into Ansible easily and select whatever key you
> want. This is how the PowerShell modules work as well.
>
> Thanks
>
> Jordan
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/dee17ca7-70a6-4103-9a05-befdf1197e02%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAH%3DqtGW9LnE7bNM%3DthZn%3D%2BZTmWw7_Euf_t9N3jKKhPEwsYL4Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: winrm send_input failed

2018-05-17 Thread Abhijeet Kamble
Facing the same issue with Ansible 2.4.1

 WINRM RESULT u''
 PUT "/tmp/P20FrontOffice.zip" TO 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=25 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=50 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=75 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=100 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=125 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=150 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=175 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=200 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=225 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=250 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=275 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=300 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=325 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=350 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=375 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=400 size=25)
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\service_user_a\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=425 size=25)
 [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
last):   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 276, in _winrm_exec
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
eof=is_last)   File "/usr/lib/python2.7/site-
packages/ansible/plugins/connection/winrm.py", line 256, in 
_winrm_send_input
protocol.send_message(xmltodict.unparse(rq))   File
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/protocol.py", 
line
207, in send_message return self.transport.send_message(message)   File
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/transport.py",
line 184, in send_message response = self.session.send(prepared_request,
timeout=self.read_timeout_sec)   File 
"/var/lib/awx/venv/ansible/lib/python2.7
/site-packages/requests/sessions.py", line 639, in …
 WINRM CLOSE SHELL: 434399E7-C8C0-4A8D-966F-BE341385B4FE
fatal: [mweb03.xyz.com]: FAILED! => {
"failed": true, 
"msg": "winrm send_input failed"
}

On Friday, September 1, 2017 at 12:55:21 AM UTC+5:30, J Hawkesworth wrote:
>
> Please share the playbook that is causing this error, and also the 
> group_vars you are using.
>
> You might need to change some of the timeouts - try something like the 
> following.
>
> ansible_winrm_operation_timeout_sec=60ansible_winrm_read_timeout_sec=70
>
>
> Is the server busy when this happens?  Can you monitor cpu disk and 
> network activity when this occurs?
>
> On Thursday, August 31, 2017 at 10:52:24 AM UTC+1, sohail.p...@gmail.com 
> wrote:
>>
>> [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
>> last):   File "/usr/lib/python2.7/site-
>> packages/ansible/plugins/connection/winrm.py", line 267, in _winrm_exec
>> self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
>> eof=is_last)   File "/usr/lib/python2.7/site-
>> packages/ansible/plugins/connection/winrm.py", line 248, in 
>> _winrm_send_input
>> protocol.send_message(xmltodi

[ansible-project] Re: winrm send_input failed

2018-05-17 Thread Abhijeet Kamble
I am facing the same while copying the content from linux machine to 
windows.

 WINRM RESULT u''
806
 PUT "/tmp/P20FrontOffice.zip" TO 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
807
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=25 size=25)
808
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=50 size=25)
809
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=75 size=25)
810
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=100 size=25)
811
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=125 size=25)
812
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=150 size=25)
813
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=175 size=25)
814
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=200 size=25)
815
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=225 size=25)
816
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=250 size=25)
817
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=275 size=25)
818
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=300 size=25)
819
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=325 size=25)
820
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=350 size=25)
821
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=375 size=25)
822
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=400 size=25)
823
 WINRM PUT "/tmp/P20FrontOffice.zip" to 
"C:\Users\svc_a_am_prf_np\AppData\Local\Temp\ansible-tmp-1526547128.67-17340612201760\source"
 
(offset=425 size=25)
824
[WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
825
last): File "/usr/lib/python2.7/site-
826
packages/ansible/plugins/connection/winrm.py", line 276, in _winrm_exec
827
self._winrm_send_input(self.protocol, self.shell_id, command_id, data,
828
eof=is_last) File "/usr/lib/python2.7/site-
829
packages/ansible/plugins/connection/winrm.py", line 256, in 
_winrm_send_input
830
protocol.send_message(xmltodict.unparse(rq)) File
831
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/protocol.py", 
line
832
207, in send_message return self.transport.send_message(message) File
833
"/var/lib/awx/venv/ansible/lib/python2.7/site-packages/winrm/transport.py",
834
line 184, in send_message response = self.session.send(prepared_request,
835
timeout=self.read_timeout_sec) File "/var/lib/awx/venv/ansible/lib/python2.7
836
/site-packages/requests/sessions.py", line 639, in …
842
 WINRM CLOSE SHELL: 
434399E7-C8C0-4A8D-966F-BE341385B4FE
843
fatal: [dc1dpfmweb03.ds.ad.adp.com]: FAILED! => {
844
"failed": true, 
845
"msg": "winrm send_input failed"
846
}

On Friday, September 1, 2017 at 12:55:21 AM UTC+5:30, J Hawkesworth wrote:
>
> Please share the playbook that is causing this error, and also the 
> group_vars you are using.
>
> You might need to change some of the timeouts - try something like the 
> following.
>
> ansible_winrm_operation_timeout_sec=60ansible_winrm_read_timeout_sec=70
>
>
> Is the server busy when this happens?  Can you monitor cpu disk and 
> network activity when this occurs?
>
> On Thursday, August 31, 2017 at 10:52:24 AM UTC+1, sohail.p...@gmail.com 
> wrote:
>>
>> [WARNING]: FATAL ERROR DURING FILE TRANSFER: Traceback (most recent call
>> last):   File "/usr/lib/python2.7/site-
>> packages/ansible/plugins/connection/winrm.py", line 267, in _winrm_exec
>> self._winrm_send_input(self.protocol, self.shell_id,

Re: [ansible-project] delegate_to with --extra-vars usage

2018-05-17 Thread 'deewon' via Ansible Project
Thanks Brian.

This pretty much nailed it

Dayo

On Tuesday, May 15, 2018 at 6:28:25 PM UTC+1, Brian Coca wrote:
>
> quotes!: 
>
> delegate_to: "{{ groups[v_grp] | random }}" 
>
>
>
>
>
> -- 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3d727962-1d2a-447a-8a05-95a10784fa79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] delegate_to with --extra-vars usage

2018-05-17 Thread 'deewon' via Ansible Project
Thanks for the hint

On Tuesday, May 15, 2018 at 5:02:24 PM UTC+1, Brian Coca wrote:
>
> do --extra-vars="v_grp=testgrp" 
>
>
> -- 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54aefec1-cf20-4450-bae6-74b22fd730e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: File copy/Create folder on Windows server based upon json output from Powershell

2018-05-17 Thread Jordan Borean
Yep, I would create a hashtable, convert that to JSON and output that. That 
way you can parse that into Ansible easily and select whatever key you 
want. This is how the PowerShell modules work as well.

Thanks

Jordan

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/dee17ca7-70a6-4103-9a05-befdf1197e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.