-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update of LXC Containers does not work (Mounts/Memory/etc.) #9055
Comments
Files identified in the description:
If these files are incorrect, please update the |
Well seems like the "update" parameter only works for the state "present". Could you please update the documentation to reflect that? |
Currently noone seems to actively maintain the proxmox modules. You could create a PR to update the documentation, if it looks good I'll merge it. |
I'm currently working a bit on the module. Couldn't we deprecate it and remove it in future versions such that |
I don't remember how the
|
Looking at the code, it seems to be the latter. Apparently, before PVE4.0 you couldn't update a container config (via the API?). What about deprecating it? |
I don't think it makes sense to deprecate that option. The behavior of What could be done is deprecating the current default (which is |
That sounds like a good idea. How does one deprecate the default value of a variable though? |
The general procedure is:
This informs users what will happen and allows them to silence the user by explicitly setting the parameter to what they want it to be. So if your task should not update, explicitly set Then in community.general x.0.0, we'll set the new value as |
@Lithimlin I wrote this doc primarily for myself: https://github.com/russoz-ansible/ansible-contrib-unofficial/blob/main/deprecations.md to remember how to do deprecations in different situations. Felix has already explained this case but it might be good to keep the reference. ;-) |
@russoz have you thought on adding this to the official Ansible documentation? I think it would be useful there. |
Err... nope. But now it seems not only a good idea, but an obvious one. :-) Will add this to my queue. |
How about at the end of https://docs.ansible.com/ansible/latest/dev_guide/module_lifecycle.html ? |
I don't think this is resolved yet. |
@Exzellius please stop closing this issue. Thanks. |
Summary
When trying ot update a running LXC on proxmox, I get return for ansible and nothing about the configuration is changed, even tho I clearly indicate so in the playbook.
Issue Type
Bug Report
Component Name
community.general.proxmox
Ansible Version
Community.general Version
Configuration
OS / Environment
OpenSuse Leap 15.6
Steps to Reproduce
Expected Results
New config parameters should be applied and the status of the task should be changed.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: