Skip to content

Commit

Permalink
Added ability to create Openstack users without password (ansible#37338)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingoarun authored and Tomorrow9 committed Dec 4, 2018
1 parent 90e4b36 commit 236a371
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/ansible/modules/cloud/openstack/os_user.py
Expand Up @@ -33,7 +33,7 @@
description:
- Password for the user
update_password:
default: always
required: false
choices: ['always', 'on_create']
version_added: "2.3"
description:
Expand Down Expand Up @@ -97,6 +97,15 @@
email: demo@example.com
domain: default
default_project: demo
# Create a user without password
- os_user:
cloud: mycloud
state: present
name: demouser
email: demo@example.com
domain: default
default_project: demo
'''


Expand Down Expand Up @@ -181,7 +190,7 @@ def main():
domain=dict(required=False, default=None),
enabled=dict(default=True, type='bool'),
state=dict(default='present', choices=['absent', 'present']),
update_password=dict(default='always', choices=['always', 'on_create']),
update_password=dict(default=None, choices=['always', 'on_create']),
)

module_kwargs = openstack_module_kwargs()
Expand Down

0 comments on commit 236a371

Please sign in to comment.