7c632352a0
The behaviour of the `include` module is badly defined (it try to choose between statically importing the tasks and dynamically including them) and can cause problems depending on any number of constraints (mostly if it choose the wrong behaviour). Replace it with the `import_tasks` (always statically import tasks) unless the `include` is in a loop in which case we replace it with `include_tasks` (always dynamically include tasks).
11 lines
227 B
YAML
11 lines
227 B
YAML
---
|
|
# - fail:
|
|
# msg: "This role support only java 8 for now !"
|
|
# when: java_version != 8
|
|
|
|
- import_tasks: openjdk.yml
|
|
when: java_alternative == 'openjdk'
|
|
|
|
- import_tasks: oracle.yml
|
|
when: java_alternative == 'oracle'
|