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].
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/c4750744-60f1-4c2c-af94-bc1f0d1a778d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to