- name: install vmm gather_facts: no hosts: "{{target}}" become: "{{become}}" tasks: - include_tasks: incl-install-xen.yml when: vmm_type == 'xen' - include_tasks: incl-install-kvm.yml when: vmm_type == 'kvm' - include_tasks: incl-network.yml