-
When I run my playbook on my Proxmox instance to create an LXC, it successfully creates the LXC and shows status as
ok=2 changed=1 -
However, when I run the playbook again, even though nothing inside the LXC changes, the play shows status as
ok=2 changed=1 -
The proxmox tasks, show no rerun either, however, I believe the play should not display
changed=1in Play Recap either. -
Is this the expected behaviour? I am new to Ansible so please guide me in case my understanding is wrong.
-
Version(s) of the relevant software tools, libraries, collections etc
– ansible[core 2.20.5]
– proxmoxer[2.2.0]
– community.proxmox[1.6.0] -
Logs from running the play with
-vvvflag
changed: [192.168.1.50] => {
"changed": true,
"invocation": {
"module_args": {
"api_host": "192.168.1.50",
"api_password": null,
"api_port": null,
"api_timeout": 5,
"api_token_id": "ansible",
"api_token_secret": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"api_user": "root@pam",
"ca_path": null,
"clone": null,
"clone_type": "opportunistic",
"cores": 4,
"cpus": null,
"cpuunits": null,
"delete": null,
"description": "Copyparty LXC",
"disk": null,
"disk_volume": {
"host_path": null,
"options": null,
"size": 200,
"storage": "local-lvm",
"volume": null
},
"features": [
"nesting=1"
],
"force": false,
"hookscript": null,
"hostname": "copyparty-ct",
"ip_address": null,
"memory": 4096,
"mount_volumes": null,
"mounts": null,
"nameserver": null,
"netif": {
"net0": "name=eth0,bridge=vmbr0,firewall=1,ip=dhcp,ip6=dhcp,type=veth"
},
"node": "msi",
"onboot": true,
"ostemplate": "local:vztmpl/alpine-3.23-default_20260116_amd64.tar.xz",
"ostype": "alpine",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"pool": null,
"purge": false,
"searchdomain": null,
"startup": null,
"state": "present",
"storage": "local",
"swap": 512,
"tags": [
"copyparty",
"alpine"
],
"timeout": 30,
"timezone": "host",
"unprivileged": true,
"update": true,
"validate_certs": false,
"vmid": 408
}
},
"msg": "VM copyparty-ct (408) has been updated.",
"vmid": 408
}