Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread J Hawkesworth
I think latest devel is only available by cloning from github. I am hoping there will be a 1.9.2 release candidate 2 soon which might include these modules. Jon On Thursday, June 11, 2015 at 5:40:39 PM UTC+1, Slim Slam wrote: > > Since v1.9.2 is not released yet, is there a way to use pip to up

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Slim Slam
Since v1.9.2 is not released yet, is there a way to use pip to upgrade to the latest development version of 1.9.2? J On Thursday, June 11, 2015 at 11:37:59 AM UTC-5, Jake Dupuy wrote: > > I've got a similar issue, I need to get win_file working for one of my > plays. Sounds like upgrade to 1.9.

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Jake Dupuy
I've got a similar issue, I need to get win_file working for one of my plays. Sounds like upgrade to 1.9.2 should do the trick? On Thursday, June 11, 2015 at 11:27:51 AM UTC-5, Slim Slam wrote: > > If you look back through this thread, you'll see that I unistalled and > then reinstalled Ansibl

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread Slim Slam
If you look back through this thread, you'll see that I unistalled and then reinstalled Ansible. It didn't change anything. The core windows modules work, but not the windows modules in extras. J On Thursday, June 11, 2015 at 11:02:59 AM UTC-5, J Hawkesworth wrote: > > I haven't tried chocolate

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-11 Thread J Hawkesworth
I haven't tried chocolatey but I can get win_updates to execute. But my ansible was installed via yum and I'm not on a mac. It does feel like something is stopping ansible from finding parts of itself. Have you upgraded from an older ansible version (or did you start with a fresh 1.9.1 instal

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread Slim Slam
It originally said "path = None" but I then explicitly set the path. It didn't make a difference. Still broken. Are you able to access update and chocolatey? J On Wednesday, June 10, 2015 at 3:29:45 PM UTC-5, J Hawkesworth wrote: > > Have you set the module search path by modifying your ansible.

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread J Hawkesworth
Have you set the module search path by modifying your ansible.cfg? My 1.9.1 install shows configured module search path = None unless I set a library= value in my ansible.cfg (maybe cos I originally installed from yum though). On Wednesday, June 10, 2015 at 5:22:45 PM UTC+1, Slim Slam wro

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread Slim Slam
Ok. I filed a documentation bug on the two windows modules which are not in Ansible 1.9.1 (but the docs don't mention that): https://github.com/ansible/ansible/issues/11220 After some further testing, it appears that the windows modules in the "core/windows" directory work ok. However, the wind

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread Slim Slam
I did "sudo pip uninstall ansible" and then "sudo pip install ansible". Made no difference. yamllint.com says that my ansible script is valid. I'm stumped. J On Wednesday, June 10, 2015 at 7:43:33 AM UTC-5, J Hawkesworth wrote: > > I don't have a mac to try this out on but it seems you aren'

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread J Hawkesworth
I don't have a mac to try this out on but it seems you aren't picking up your modules. I did a quick search and I found a couple of threads that might be relevant: https://github.com/ansible/ansible/issues/5412 https://groups.google.com/forum/#!topic/ansible-project/Px4DyaHwD3I I suggest 1/ t

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread Slim Slam
I think these might be the relevant module directories on my Mac: $ ls /Library/Python/2.7/site-packages/ansible/modules/core/windows __init__.py win_feature.ps1 win_get_url.py win_group.pyc win_ping.ps1 win_service.py win_stat.pyc __init__.pyc win_feature.py win_get_url.pyc win_msi.ps1 win_ping.

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-10 Thread Slim Slam
I've been installing Ansible using pip, e.g. "sudo pip install --upgrade ansible" By the way, if the only task I have is this one: tasks: - win_chocolatey: name: PSWindowsUpdate state: present I get this error: ERROR: state is not a legal parameter in an Ansible task or handler I

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-09 Thread J Hawkesworth
Actually win_copy and win_file were not included in 1.9.1. They are in 1.9.2 rc1 but there were a couple of issues with win_copy for which I have made fixes. I hope these will be incorporated into 1.9.2 rc2. Jon -- You received this message because you are subscribed to the Google Groups "An

Re: [ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-09 Thread benno joy
Hi, How did you install ansible, if it is a checkout did you --recursive to add the submodules ? seems like ansible is not able to see the modules in the modules path. On Wed, Jun 10, 2015 at 9:28 AM, Slim Slam wrote: > Running Ansible v1.9.1 under MacOSX 10.10.3 > > Trying to use Ansible to

[ansible-project] ERROR: win_file is not a legal parameter in an Ansible task or handler

2015-06-09 Thread Slim Slam
Running Ansible v1.9.1 under MacOSX 10.10.3 Trying to use Ansible to configure Windows Server 2008 and am having some basic problem. The server is running on Amazon AWS. I've got all the connection stuff working fine. This (mostly empty) Ansible playbook runs fine: --- # Buildit.yml - name: C