Skip to content

Commit

Permalink
Remove password requirement when creating lxc containers (#1999) (#2012)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 4676ca5)

Co-authored-by: Ajpantuso <[email protected]>
  • Loading branch information
patchback[bot] and Ajpantuso authored Mar 12, 2021
1 parent 4f31106 commit b8050e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/1999-proxmox-fix-issue-1955.yml
Original file line number Diff line number Diff line change
@@ -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).
3 changes: 1 addition & 2 deletions plugins/modules/cloud/misc/proxmox.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
password:
description:
- the instance root password
- required only for C(state=present)
type: str
hostname:
description:
Expand Down Expand Up @@ -538,7 +537,7 @@ def main():
hookscript=dict(type='str'),
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_one_of=[('api_password', 'api_token_id')],
)
Expand Down

0 comments on commit b8050e1

Please sign in to comment.