mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update documentation of pamd module (#24712)
Updated explanation and documentation of new_module* in pamd documentation Fixes #24516 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
577d01baa3
commit
5bd4e01533
2 changed files with 30 additions and 36 deletions
|
@ -56,19 +56,15 @@ options:
|
||||||
- The module path of the PAM rule being modified. The type,
|
- The module path of the PAM rule being modified. The type,
|
||||||
control and module_path all must match a rule to be modified.
|
control and module_path all must match a rule to be modified.
|
||||||
new_type:
|
new_type:
|
||||||
required: false
|
|
||||||
description:
|
description:
|
||||||
- The type to assign to the new rule.
|
- The new type to assign to the new rule.
|
||||||
new_control:
|
new_control:
|
||||||
required: false
|
|
||||||
description:
|
description:
|
||||||
- The control to assign to the new rule.
|
- The new control to assign to the new rule.
|
||||||
new_module_path:
|
new_module_path:
|
||||||
required: false
|
|
||||||
description:
|
description:
|
||||||
- The control to assign to the new rule.
|
- The new module path to be assigned to the new rule.
|
||||||
module_arguments:
|
module_arguments:
|
||||||
required: false
|
|
||||||
description:
|
description:
|
||||||
- When state is 'updated', the module_arguments will replace existing
|
- When state is 'updated', the module_arguments will replace existing
|
||||||
module_arguments. When state is 'args_absent' args matching those
|
module_arguments. When state is 'args_absent' args matching those
|
||||||
|
@ -78,7 +74,6 @@ options:
|
||||||
takes a value denoted by '=', the value will be changed to that specified
|
takes a value denoted by '=', the value will be changed to that specified
|
||||||
in module_arguments.
|
in module_arguments.
|
||||||
state:
|
state:
|
||||||
required: false
|
|
||||||
default: updated
|
default: updated
|
||||||
choices:
|
choices:
|
||||||
- updated
|
- updated
|
||||||
|
@ -96,7 +91,6 @@ options:
|
||||||
must all be specified. If state is 'args_absent' or 'args_present',
|
must all be specified. If state is 'args_absent' or 'args_present',
|
||||||
new_type, new_control, and new_module_path will be ignored.
|
new_type, new_control, and new_module_path will be ignored.
|
||||||
path:
|
path:
|
||||||
required: false
|
|
||||||
default: /etc/pam.d/
|
default: /etc/pam.d/
|
||||||
description:
|
description:
|
||||||
- This is the path to the PAM service files
|
- This is the path to the PAM service files
|
||||||
|
@ -130,15 +124,16 @@ EXAMPLES = """
|
||||||
new_module_path: pam_faillock.so
|
new_module_path: pam_faillock.so
|
||||||
state: before
|
state: before
|
||||||
|
|
||||||
- name: Insert a new rule after an existing rule
|
- name: Insert a new rule pam_wheel.so with argument 'use_uid' after an existing rule pam_rootok.so
|
||||||
pamd:
|
pamd:
|
||||||
name: system-auth
|
name: su
|
||||||
type: auth
|
type: auth
|
||||||
control: required
|
control: sufficient
|
||||||
module_path: pam_faillock.so
|
module_path: pam_rootok.so
|
||||||
new_type: auth
|
new_type: auth
|
||||||
new_control: sufficient
|
new_control: required
|
||||||
new_module_path: pam_faillock.so
|
new_module_path: pam_wheel.so
|
||||||
|
module_arguments: 'use_uid'
|
||||||
state: after
|
state: after
|
||||||
|
|
||||||
- name: Remove module arguments from an existing rule
|
- name: Remove module arguments from an existing rule
|
||||||
|
|
|
@ -550,7 +550,6 @@ lib/ansible/modules/system/open_iscsi.py
|
||||||
lib/ansible/modules/system/openwrt_init.py
|
lib/ansible/modules/system/openwrt_init.py
|
||||||
lib/ansible/modules/system/osx_defaults.py
|
lib/ansible/modules/system/osx_defaults.py
|
||||||
lib/ansible/modules/system/pam_limits.py
|
lib/ansible/modules/system/pam_limits.py
|
||||||
lib/ansible/modules/system/pamd.py
|
|
||||||
lib/ansible/modules/system/puppet.py
|
lib/ansible/modules/system/puppet.py
|
||||||
lib/ansible/modules/system/runit.py
|
lib/ansible/modules/system/runit.py
|
||||||
lib/ansible/modules/system/seboolean.py
|
lib/ansible/modules/system/seboolean.py
|
||||||
|
|
Loading…
Reference in a new issue