--- - hosts: dellos10 gather_facts: no connection: local vars: limit_to: "*" test_items: "" roles: - { role: test_dellos10_command, when: "limit_to in ['*', 'dellos10_command']" } - { role: test_dellos10_config, when: "limit_to in ['*', 'dellos10_config']" } - { role: test_dellos10_facts, when: "limit_to in ['*', 'dellos10_facts']" }