Code:
---
- name: Clone VM
hosts: localhost
gather_facts: no
tasks:
- name: Clone VM
community.general.proxmox_kvm:
api_user:
api_password:
api_host:
validate_certs: no
clone: cloud-init
clone: ansible-102
name: ansible-103
newid: 103
node: pve-01
storage: tech
format: qcow2
timeout: 500
net:
net0: 'virtio,bridge=vmbr2,tag=1024,firewall=1'
ipconfig:
ipconfig0: 'ip=10.22.1.103/24, gw=10.22.1.254'
I cloned the VM using Ansible-Playbook without any problems, but the CLoud init parameters cannot be modified using ansible
[ATTACH type="full"]76313[/ATTACH]
I manually modified the cloud init config configuration and it worked fine