From 7f60b1f2dd311fec9dc2e37a2b69e939a574ceae Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 07:35:05 +0100 Subject: [PATCH] [PR #7685/98b2d043 backport][stable-7] Updated documentation to reflect new behaviour (#7748) Updated documentation to reflect new behaviour (#7685) * Updated documentation to reflect new behaviour Per issue [6027](https://github.com/ansible-collections/community.general/issues/6027), disk and storage should not be used together, and changes to the API make it so "disk" should be formatted like ":". Documentation edited to reflect this new behavior. * Apply suggestions from code review Change format due to referencing options. Co-authored-by: Felix Fontein --------- Co-authored-by: Felix Fontein (cherry picked from commit 98b2d04348e9d25c79b6982982b0f81bea6d3fa2) Co-authored-by: Wesley P <68830971+xhk416x@users.noreply.github.com> --- plugins/modules/proxmox.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/modules/proxmox.py b/plugins/modules/proxmox.py index 7a0df1422b..ea1f13aa31 100644 --- a/plugins/modules/proxmox.py +++ b/plugins/modules/proxmox.py @@ -48,6 +48,7 @@ options: [,replicate=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=])." - See U(https://pve.proxmox.com/wiki/Linux_Container) for a full description. - This option has no default unless O(proxmox_default_behavior) is set to V(compatibility); then the default is V(3). + - Should not be used in conjunction with O(storage). type: str cores: description: @@ -96,6 +97,7 @@ options: storage: description: - target storage + - Should not be used in conjunction with O(disk). type: str default: 'local' cpuunits: @@ -233,6 +235,18 @@ EXAMPLES = r''' hostname: example.org ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz' +- name: Create new container with minimal options specifying disk storage location and size + community.general.proxmox: + vmid: 100 + node: uk-mc02 + api_user: root@pam + api_password: 1q2w3e + api_host: node1 + password: 123456 + hostname: example.org + ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz' + disk: 'local-lvm:20' + - name: Create new container with hookscript and description community.general.proxmox: vmid: 100