Fixes some bugs in yaml and code (#26627)
related to default values that were pointed out to me.pull/4420/head
parent
75e609c15e
commit
ea14107a56
|
@ -35,24 +35,19 @@ options:
|
||||||
full_name:
|
full_name:
|
||||||
description:
|
description:
|
||||||
- Full name of the user.
|
- Full name of the user.
|
||||||
required: false
|
|
||||||
username_credential:
|
username_credential:
|
||||||
description:
|
description:
|
||||||
- Name of the user to create, remove or modify.
|
- Name of the user to create, remove or modify.
|
||||||
required: true
|
required: True
|
||||||
aliases:
|
aliases:
|
||||||
- name
|
- name
|
||||||
password_credential:
|
password_credential:
|
||||||
description:
|
description:
|
||||||
- Set the users password to this unencrypted value.
|
- Set the users password to this unencrypted value.
|
||||||
C(password_credential) is required when creating a new account.
|
C(password_credential) is required when creating a new account.
|
||||||
default: None
|
|
||||||
required: false
|
|
||||||
shell:
|
shell:
|
||||||
description:
|
description:
|
||||||
- Optionally set the users shell.
|
- Optionally set the users shell.
|
||||||
required: false
|
|
||||||
default: None
|
|
||||||
choices:
|
choices:
|
||||||
- bash
|
- bash
|
||||||
- none
|
- none
|
||||||
|
@ -67,13 +62,10 @@ options:
|
||||||
C(operator), C(resource-admin), C(user-manager), C(web-application-security-administrator),
|
C(operator), C(resource-admin), C(user-manager), C(web-application-security-administrator),
|
||||||
and C(web-application-security-editor). Partition portion of tuple should
|
and C(web-application-security-editor). Partition portion of tuple should
|
||||||
be an existing partition or the value 'all'.
|
be an existing partition or the value 'all'.
|
||||||
required: false
|
|
||||||
default: None
|
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Whether the account should exist or not, taking action if the state is
|
- Whether the account should exist or not, taking action if the state is
|
||||||
different from what is stated.
|
different from what is stated.
|
||||||
required: false
|
|
||||||
default: present
|
default: present
|
||||||
choices:
|
choices:
|
||||||
- present
|
- present
|
||||||
|
@ -82,14 +74,13 @@ options:
|
||||||
description:
|
description:
|
||||||
- C(always) will allow to update passwords if the user chooses to do so.
|
- C(always) will allow to update passwords if the user chooses to do so.
|
||||||
C(on_create) will only set the password for newly created users.
|
C(on_create) will only set the password for newly created users.
|
||||||
required: false
|
|
||||||
default: on_create
|
default: on_create
|
||||||
choices:
|
choices:
|
||||||
- always
|
- always
|
||||||
- on_create
|
- on_create
|
||||||
notes:
|
notes:
|
||||||
- Requires the requests Python package on the host. This is as easy as
|
- Requires the f5-sdk Python package on the host. This is as easy as
|
||||||
pip install requests
|
pip install f5-sdk.
|
||||||
- Requires BIG-IP versions >= 12.0.0
|
- Requires BIG-IP versions >= 12.0.0
|
||||||
extends_documentation_fragment: f5
|
extends_documentation_fragment: f5
|
||||||
requirements:
|
requirements:
|
||||||
|
@ -560,26 +551,16 @@ class ArgumentSpec(object):
|
||||||
aliases=['username_credential']
|
aliases=['username_credential']
|
||||||
),
|
),
|
||||||
password_credential=dict(
|
password_credential=dict(
|
||||||
required=False,
|
|
||||||
default=None,
|
|
||||||
no_log=True,
|
no_log=True,
|
||||||
),
|
),
|
||||||
partition_access=dict(
|
partition_access=dict(
|
||||||
required=False,
|
|
||||||
default=None,
|
|
||||||
type='list'
|
type='list'
|
||||||
),
|
),
|
||||||
full_name=dict(
|
full_name=dict(),
|
||||||
required=False,
|
|
||||||
default=None
|
|
||||||
),
|
|
||||||
shell=dict(
|
shell=dict(
|
||||||
required=False,
|
|
||||||
default=None,
|
|
||||||
choices=['none', 'bash', 'tmsh']
|
choices=['none', 'bash', 'tmsh']
|
||||||
),
|
),
|
||||||
update_password=dict(
|
update_password=dict(
|
||||||
required=False,
|
|
||||||
default='always',
|
default='always',
|
||||||
choices=['always', 'on_create']
|
choices=['always', 'on_create']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue