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