--- - name: Update an LXC container community.general.proxmox: api_host: "{{ proxmox_api_host }}" api_port: "{{ proxmox_api_port }}" api_user: "{{ proxmox_api_user }}" api_token_id: "{{ proxmox_api_token_id }}" api_token_secret: "{{ proxmox_api_token_secret }}" validate_certs: "{{ proxmox_api_validate_certs }}" node: "{{ proxmox_node }}" vmid: "{{ container_vmid }}" hostname: "{{ container_hostname }}" password: "{{ container_password | default(omit) }}" # Updating password does not work cores: "{{ container_cores }}" memory: "{{ container_memory }}" swap: "{{ container_swap }}" disk: "{{ container_disk }}" netif: '{"net0": "name=eth0,gw={{ container_gateway }},ip={{ container_ipv4 }},ip6={{ container_ipv6 | default(omit) }},bridge=vmbr0"}' pubkey: "{{ lookup('file', container_pubkey_file) | default(omit) }}" onboot: "{{ container_onboot | default(false) }}" startup: "{{ container_startup | default(omit) }}" features: "{{ container_features | default(omit) }}" timezone: "{{ container_timezone | default(omit) }}" nameserver: "{{ container_nameserver | default(omit) }}" state: present tags: "{{ container_tags | default(omit) }}" update: true register: container_result