Hi to everyone!
First of all, let me apologize if I’m asking for an already reported bug, I searched the web and the group but didn’t find anything.
I’m having an issue with included task files + with_items. I’m using Ansible2, to be precise the latest tarball found in the download page (from October 6th)
In my setup, I need to have different JDK versions installed in the same base path, so I created a task file (with instructions to grab the jdk package and uncompress it in the right place) and the idea is to have those tasks run for each version of the JDK not found in the base path. I’m using with_items and when to find out the versions I need to install. When I run ansible-playbook, I see “included: file.yml” as part of the output, however the tasks in the file are not executed.
I created a very simple example to reproduce this behavior. I believe it is a bug, but in case it is working as designed, could you please let me know how to achieve what I need?
Directory structure:
inventory
playbook.yml
roles/somerole/tasks/inclusion_test.yml
roles/somerole/tasks/main.yml
File contents:
inventory:
server-name
playbook.yml: