azavea / ansible-java

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

Fix warning with Jinja2 template delimiters in when statement #24

Closed hectcastro closed 6 years ago

hectcastro commented 6 years ago

Unclear what version of Ansible emitted this (wasn't my machine). Probably something that needs to be fixed though so that we don't accidentally evaluate the condition incorrectly:

TASK [azavea.java : Add OpenJDK PPA] *******************************************
Tuesday 01 August 2017  16:39:17 -0400 (0:00:00.746)       0:00:28.420 ********
 [WARNING]: when statements should not include jinja2 templating delimiters
such as {{ }} or {% %}. Found: {{ ansible_distribution_version |
version_compare('14.04', '=') and java_major_version | version_compare('8',
'>=') }}
tnation14 commented 6 years ago

Closed via #25