mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Remove password requirement when creating lxc containers (#1999)
* Removed requirement for password * Updated documentation for password * Adding changelog fragment * Update changelogs/fragments/1999-proxmox-fix-issue-1955.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
3
changelogs/fragments/1999-proxmox-fix-issue-1955.yml
Normal file
3
changelogs/fragments/1999-proxmox-fix-issue-1955.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- proxmox - removed requirement that root password is provided when containter state is ``present`` (https://github.com/ansible-collections/community.general/pull/1999).
|
||||||
@@ -17,7 +17,6 @@ options:
|
|||||||
password:
|
password:
|
||||||
description:
|
description:
|
||||||
- the instance root password
|
- the instance root password
|
||||||
- required only for C(state=present)
|
|
||||||
type: str
|
type: str
|
||||||
hostname:
|
hostname:
|
||||||
description:
|
description:
|
||||||
@@ -514,7 +513,7 @@ def main():
|
|||||||
hookscript=dict(type='str'),
|
hookscript=dict(type='str'),
|
||||||
proxmox_default_behavior=dict(type='str', choices=['compatibility', 'no_defaults']),
|
proxmox_default_behavior=dict(type='str', choices=['compatibility', 'no_defaults']),
|
||||||
),
|
),
|
||||||
required_if=[('state', 'present', ['node', 'hostname', 'password', 'ostemplate'])],
|
required_if=[('state', 'present', ['node', 'hostname', 'ostemplate'])],
|
||||||
required_together=[('api_token_id', 'api_token_secret')],
|
required_together=[('api_token_id', 'api_token_secret')],
|
||||||
required_one_of=[('api_password', 'api_token_id')],
|
required_one_of=[('api_password', 'api_token_id')],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user