[SOLVED] Why cannot the ansible parameter ipconfig modify the configuration of my Cloud-init

vitaaaaaa

New Member
Oct 15, 2024
1
0
1
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
 

Attachments

  • 1728984180760.png
    1728984180760.png
    38.8 KB · Views: 4

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!