Skip to content

Commit

Permalink
Make it an int, as curly brackets need quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jul 8, 2022
1 parent 52744f5 commit 3745a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
- name: test if java_version is set correctly
ansible.builtin.assert:
that:
- java_version is integer
- java_version in [ 6, 7, 8, 9, 10, 11, 12, 13 ]
- java_version | int is integer
- java_version | int in [ 6, 7, 8, 9, 10, 11, 12, 13 ]
quiet: yes
when:
- java_version is defined
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
mode: "0755"
when:
- java_jce | bool
- java_version == 8
- java_version | int == 8
- java_vendor == "oracle"

- name: set alternative (targz)
Expand Down

0 comments on commit 3745a2e

Please sign in to comment.