Re: [ansible-project] Ansible copy file module to Windows host fails

2015-01-27 Thread Jeffrey Liu
odule or if you just want to run a powershell script, the script module works too. On Tue, Jan 27, 2015 at 1:24 PM, Jaime Banda wrote: > Can you share your code that works an how did you did it? > > > On Saturday, December 20, 2014 at 10:03:54 AM UTC-7, Jeffrey Liu wrote: >>

[ansible-project] Re: Use get_url to download all files in a location

2015-01-15 Thread Jeffrey Liu
Andreas, How about writing a wrapper script that ansible can call and then populate the results into a variable to use with get_url. wget -O - http://www.example.com/software/latest/ | grep zip | cut -d\> -f 2 | sed -e 's! > +1 > I'm interested in something like this as well. Thanks! > > On

[ansible-project] Re: Use get_url to download all files in a location

2015-01-15 Thread Jeffrey Liu
+1 I'm interested in something like this as well. Thanks! On Thursday, January 15, 2015 at 11:27:38 AM UTC-5, Andres Silva wrote: > > Im writing a playbook to install the latest version of a software. The > latest version will always be in a url like this > http://www.example.com/software/la

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-08 Thread Jeffrey Liu
As well as the disk associated with the Linux VM is not deleted. On Thursday, January 8, 2015 1:59:28 PM UTC-5, Jeffrey Liu wrote: > > Another follow up, downgrading to v0.8.4 seems to allow the creation of a > linux VM, but it does not properly terminate. > The Linux VM is dele

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-08 Thread Jeffrey Liu
Another follow up, downgrading to v0.8.4 seems to allow the creation of a linux VM, but it does not properly terminate. The Linux VM is deleted, but the associated cloud service is not deleted. On Thursday, January 8, 2015 11:38:15 AM UTC-5, Jeffrey Liu wrote: > > Just an FYI, it seem

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-08 Thread Jeffrey Liu
Just an FYI, it seems that downgrading the python azure library to v0.8.4 fixes the issue. I'll put a note into the github issue below as well. On Wednesday, January 7, 2015 4:05:57 PM UTC-5, Jeffrey Liu wrote: > > In Azure, there's a concept of a cloud service (sort of a cont

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-07 Thread Jeffrey Liu
he VM. On Wednesday, January 7, 2015 3:53:32 PM UTC-5, Jeffrey Liu wrote: > > Okay, looks like I'm getting the same error as reported here: > > https://github.com/ansible/ansible-modules-core/issues/397 > > No attribute 'public_ips' > > > $ ansible-

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-07 Thread Jeffrey Liu
aborting PLAY RECAP to retry, use: --limit @/home/jklee/azure.retry localhost : ok=0changed=0unreachable=0failed=1 On Wednesday, January 7, 2015 3:50:16 PM UTC-5, Jeffrey Liu wrote: &

Re: [ansible-project] provisioning azure VMs with azure module

2015-01-07 Thread Jeffrey Liu
Silly me. Yes, that gets me farther. Thank you. Now it seems to be failing on checking if the name is available - looks like a management cert error. I'll have to continue debugging TASK: [create test instance] ** failed: [localhost -> 127

[ansible-project] provisioning azure VMs with azure module

2015-01-07 Thread Jeffrey Liu
Hi All, Ansible: 1.8.2 Python-azure: 0.9.0 I'm trying to use ansible to provision an Azure VM, but I'm getting the following error: $ ansible-playbook test.yml ERROR: local_action is not a legal parameter at this level in an Ansible Playbook $ cat test.yml --- # Provision virtual machine

Re: [ansible-project] Ansible copy file module to Windows host fails

2014-12-20 Thread Jeffrey Liu
ttps://github.com/ansible/ansible-modules-core/pull/384 > https://github.com/ansible/ansible/pull/9611 > > On Tuesday, December 16, 2014, Jeffrey Liu > wrote: > >> Hi All, >> >> I'm running Ansible 1.8.2 on a CentOS 6.6 server. >> >> I'm tr

[ansible-project] Ansible copy file module to Windows host fails

2014-12-17 Thread Jeffrey Liu
Hi All, I'm running Ansible 1.8.2 on a CentOS 6.6 server. I'm trying to copy a file to a windows host, but the copy module fails. The weird thing is that I do see that it does PUT the file over to the remote windows host, but it fails when it tries to execute the powershell to rename the fil