so a couple of issues, most modules will not accept * or ? as they do
not shell out your exact line. You can use the fileglob lookup though,
which does accept this to write:
- name: extract Java
unarchive: src={{item}} dest=/home/installer/Desktop/source/LandJ/Java copy=no
with_fileglob: '/home/installer/Desktop/source/LandJ/Java/*.zip'
Another issue you were having is putting 2 tasks in one, only one will
get executed. Each needs to be it's own task, 'name' is an optional
property not a block indicator, as you found out, but this also works:
- unarchive: src=/home/installer/Desktop/source/LandJ/Java/zipfile1.zip
dest=/home/installer/Desktop/source/LandJ/Java copy=no
- unarchive: src=/home/installer/Desktop/source/LandJ/Java/zipfile2.zip
dest=/home/installer/Desktop/source/LandJ/Java copy=no
In any case I think you want the first solution.
--
Brian Coca
--
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/CAJ5XC8%3DR%2BLn7EDeXFB_DF-qu5TY%2B5tTWVPwNMGjgFOBarmzL4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.