|
|
@ -33,7 +33,7 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Password for the user
|
|
|
|
- Password for the user
|
|
|
|
update_password:
|
|
|
|
update_password:
|
|
|
|
default: always
|
|
|
|
required: false
|
|
|
|
choices: ['always', 'on_create']
|
|
|
|
choices: ['always', 'on_create']
|
|
|
|
version_added: "2.3"
|
|
|
|
version_added: "2.3"
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -97,6 +97,15 @@ EXAMPLES = '''
|
|
|
|
email: demo@example.com
|
|
|
|
email: demo@example.com
|
|
|
|
domain: default
|
|
|
|
domain: default
|
|
|
|
default_project: demo
|
|
|
|
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
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -181,7 +190,7 @@ def main():
|
|
|
|
domain=dict(required=False, default=None),
|
|
|
|
domain=dict(required=False, default=None),
|
|
|
|
enabled=dict(default=True, type='bool'),
|
|
|
|
enabled=dict(default=True, type='bool'),
|
|
|
|
state=dict(default='present', choices=['absent', 'present']),
|
|
|
|
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()
|
|
|
|
module_kwargs = openstack_module_kwargs()
|
|
|
|