ansible-role-libvirt-vm
ansible-role-libvirt-vm copied to clipboard
Changing role variables does nothing to existing domains
Hello,
I wish there is a way to edit a domain property just by editing the role variable. For now, editing the variables does not affect the domains that are already defined.
For instance, if a domain that has 1024 MB of memory, if I change the memory_mb
to 2048
and then execute the role, nothing happens. Same for adding a disk.
Would that be reasonable to fix this behavior ?
Hi @raspbeguy, I think that once a domain exists, Ansible won't update it. We should probably keep that default behaviour, but could allow for an override flag that allows a VM to be redefined.
That would be really helpful.
To be clear, I don't have time to work on this.