Ansible when statements NOT WORKING when checking the ansible_os_family fact

Ok so I have this code(using version 2.0.1.0 of ansible):


            

I guess you just need to use "include" instead of "role:", then the
when-statement should work...

Johannes

Conditionals are working as intended, it is not possible to make ‘roles’ conditional, any when: clause will be added to the tasks of the role, but do NOT prevent the import of the role itself.