--- - name: Setup KVM VMs hosts: all become: yes vars_files: - ../vars/vms.yml roles: - kvm_host_setup tasks: - name: Provision each VM include_role: name: os_config vars: vm_name: "{{ item.name }}" os_type: "{{ item.os_type }}" loop: "{{ vms }}" - name: Launch each VM include_role: name: vm_provision vars: vm_name: "{{ item.name }}" os_type: "{{ item.os_type }}" os_variant: "{{ item.os_variant }}" cpu: "{{ item.cpu }}" ram: "{{ item.ram }}" disk: "{{ item.disk }}" loop: "{{ vms }}"