- name: Create VM community.general.proxmox_kvm: api_user: root@pam api_password: "{{ vault.pve.aya01.root.sudo }}" api_host: "192.168.20.12" name: "{{ vm.name }}" vmid: "{{ vm.vmid }}" node: "{{ vm.node }}" cpu: "{{ vm.cpu }}" cores: "{{ vm.cores }}" memory: "{{ vm.memory }}" net: "{{ vm.net }}" scsi: "{{ vm.scsi }}" scsihw: "{{ vm.scsihw }}" ostype: "{{ vm.ostype }}" sshkeys: "{{ vm.sshkeys }}" tags: "{{ proxmox_tags }}" ciuser: "{{ vm.ciuser }}" cipassword: "{{ vm_secrets[proxmox_secrets_prefix + '_' + vm.name.replace('-', '_')] }}" ide: ide2: "proxmox:cloudinit,format=qcow2" register: temp - name: Debug temp ansible.builtin.debug: msg: "{{ temp }}" - name: Set mac ansible.builtin.set_fact: mac: "{{ temp.mac }}" - name: debug mac ansible.builtin.debug: msg: "{{ mac }}"