Hello,
I have this playbook:
it works fine, only the IP is not changed.the template is an Ubuntu server and I entered the IP via netplan.Is that even possible or am I on the wrong track?
There are no error messages or anything similar
Greetings and thank you
				
			I have this playbook:
---
- name: Clone template
  hosts: pve2
  gather_facts: no
  vars_prompt:
    - name: vm_name
      prompt: "please input the Vms name"
      private: false
    
  tasks:
    - name: Clone template
      community.general.proxmox_kvm:
        node: pve2
        api_user: root@pam
        api_password: xxxxxxx
        api_host: 192.168.0.195
        clone: TestKlon
        name: "{{ vm_name }}"
        full: false
        format: unspecified
        timeout: 500
    
    
    - name: Warte auf die VM-Erstellung
      pause:
       seconds: 10  # waiting until vm ist created
    
    - name: Update
      community.general.proxmox_kvm:
        node: pve2
        api_user: root@pam
        api_password: xxxxxxxxx
        api_host: 192.168.0.195
        name: "{{ vm_name }}"
        ipconfig:
          ipconfig0: 'ip=192.168.0.101/24,gw=192.168.0.1'
        update: yes
    
    - name: Start VM
      community.general.proxmox_kvm:
        api_user: root@pam
        api_password: xxxxxxxxxx
        api_host: 192.168.0.195
        node: pve2
        name: "{{ vm_name }}"
        state: started
it works fine, only the IP is not changed.the template is an Ubuntu server and I entered the IP via netplan.Is that even possible or am I on the wrong track?
There are no error messages or anything similar
Greetings and thank you
 
	 
	