Thank you. I am still getting 404's on that URL when fed through the playbook. Was trying to exhaust all options before submitting a bug request. Any other ideas?
On Monday, February 15, 2016 at 8:37:19 AM UTC-7, Matt Martz wrote: > > I think you probably want to url encode that instead of just trying to > escape those characters. > > > http://cijboss:8080/jenkins/job/prod/186/org.myorg%5C%24ear/artifact/org.org/ear/3.0.0-SNAPSHOT/ear-3.0.0-SNAPSHOT.ear > > On Mon, Feb 15, 2016 at 9:24 AM, Ter Alexander <[email protected] > <javascript:>> wrote: > >> I have a playbook that calls get_url to download a file BUT the URL >> contains a backslash >> >> >> http://cijboss:8080/jenkins/job/prod/186/org.myorg\$ear/artifact/org.org/ear/3.0.0-SNAPSHOT/ear-3.0.0-SNAPSHOT.ear >> " >> I have tried double quotes, single quotes, \ escape sequences, etc. Have >> tried the many things found in Jinja2 and YAML escaping documents and >> nothing works. When I feed the URL through an ad hoc command, it downloads >> the file just fine. >> >> ansible <server> -m get_url -u user -a " >> http://cijboss:8080/jenkins/job/prod/186/org.myorg\$ear/artifact/org.org/ear/3.0.0-SNAPSHOT/ear-3.0.0-SNAPSHOT.ear" >> >> dest=/home/user" >> Each time the playbook runs, the url contains a double backslash. How >> does one properly escape this? >> >> Update: Below is the yml playbook file. >> >> --- >> - hosts: jboss >> remote_user: jboss >> tasks: >> - name: Get Ear file >> get_url: url=" >> http://cijboss:8080/jenkins/job/prod/186/org.myorg\$ear/artifact/org.org/ear/3.0.0-SNAPSHOT/ear-3.0.0-SNAPSHOT.ear" >> >> dest=/home/jboss mode=0755 >> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/c4750744-60f1-4c2c-af94-bc1f0d1a778d%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/c4750744-60f1-4c2c-af94-bc1f0d1a778d%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Matt Martz > @sivel > sivel.net > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/772463ef-f078-4a94-8a00-1c61bb58f2cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
