- hosts: localhost gather_facts: no roles: - { role: role_a, tags: A, when: skip != "A" } - { role: role_b, tags: B, when: skip != "B" }