Allow 'when' and 'with_items' to be applied to roles.