azavea / ansible-java

An Ansible role for installing Java.
Apache License 2.0
4 stars 15 forks source link

Wildcarding the version gives an error message. #5

Open lossyrob opened 9 years ago

lossyrob commented 9 years ago

When I run the example with Vagrant 1.5.1 and ansible 1.7.1, I get this error:


 ____________________________________________________ 
< TASK: azavea.java | Install OpenJDK JRE (headless) >
 ---------------------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

failed: [default] => {"failed": true}
msg: pkgname wildcard and version can not be mixed

FATAL: all hosts have already failed -- aborting
hectcastro commented 9 years ago

I believe that this was a feature added to the apt modules in the Ansible 1.8 series: https://github.com/ansible/ansible-modules-core/commit/ccedf0dd4027843a7ba78dacfb30954404ffdd8c