Moin,

I want to download a file using the maven_artifact plugin into a temporary 
directory (an copy this to several other maschines). Now I wonder how to 
use a registerd variable for this .....


  - name: create temporary build directory
    tempfile:
      state: directory
      suffix: _baz

  - name : download Artifacts
    maven_artifact:
      group_id: "com.foo.bar.baz"
      artifact_id: "baz-application"
      extension: "war"
      repository_url: 
"http://int-maven-01:8081/nexus/service/local/repositories/releases/content/";
      validate_certs: no
      version: "0.0.3"
      username: ""
      password: ""
      dest: "????"
 
  - name: copy war file
       copy:
       src:?????
       dest: /opt/tomcat/webapp/
         owner: tomcat
         group: root
         mode: 0440


How do I get the name of the directory? How can I use this to the dest and 
src fields?

Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/37f65ce7-db06-4f52-aa26-59c78e88e38a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to