[ansible-project] Re: Best way to run Python scripts against Managed Cygwin nodes

2018-05-15 Thread Ab Generette
Since I'm no longer going to try and run this via a script, I'd like to close this topic and start another one. On Monday, May 14, 2018 at 2:52:55 PM UTC-4, Ab Generette wrote: > > I have a CentOS7 control server from which I am trying to manage a few > Server2012/Cygwin nodes. Those latter

[ansible-project] Re: Best way to run Python scripts against Managed Cygwin nodes

2018-05-14 Thread Jordan Borean
Hmm, looks like your host vars isn't matching which what I expect, it is actually connecting over SSH and not WinRM when your original post said you defined ansible_connection: winrm. Is there a reason why you are using SSH/Cygwin on Windows, we don't support it currently as a valid

[ansible-project] Re: Best way to run Python scripts against Managed Cygwin nodes

2018-05-14 Thread Ab Generette
Thanks, Jordan. Ok, I believe I see what you mean. I only went down this convoluted path involving the script and all, because of other problems that I ran into. Changing that playbook to: --- - hosts: "{{ targets }}" user: "{{ admin }}" gather_facts: yes vars: python_exec:

[ansible-project] Re: Best way to run Python scripts against Managed Cygwin nodes

2018-05-14 Thread Jordan Borean
I'm a bit confused, do you need to use Cygwin to run this script, everything would be so much simpler if you ignored Cygwin and used something like PowerShell or pure Python? For your current playbook there are a few issues I see; - Windows modules, like win_template, do not support the