I have opened an Issue <https://github.com/ansible/ansible/issues/11707> on 
github and *jimi-c* explained it logical:

  Hi @MorphBonehunter <https://github.com/MorphBonehunter>, the problem is 
because allow_duplicates needs to be set on the base role, not in each of 
the intermediate roles. Move it there and this should work for you.

I've move the "allow_duplicates: yes" to the base role and delete the entry 
in all other roles and it works like expected...so that was clearly my 
fault.
$ ansible-playbook play-test.yml --list-tasks 

playbook: play-test.yml

  play #1 (dependency test): TAGS: []
    in base TAGS: [feature1]
    in feature1 TAGS: [feature1]
    in feature2 TAGS: [feature2]

But something is still strange when i remove the "allow_duplicates: yes" 
also in the base role i got the following:
     $ ansible-playbook play-test.yml --list-tasks -t feature1
 
    playbook: play-test.yml
 
      play #1 (dependency test):    TAGS: []
        in base TAGS: [feature1]
        in feature1 TAGS: [feature1]
 
     $ ansible-playbook play-test.yml --list-tasks -t feature2
 
    playbook: play-test.yml
 
      play #1 (dependency test):    TAGS: []
        in feature2 TAGS: [feature2]

So in the second case the base role isn't executed and this i think is not 
as expected.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/24b30049-9ba8-4d4a-82d8-0e67e05246b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to