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