13 lines
458 B
YAML
13 lines
458 B
YAML
|
---
|
||
|
- name: Set pam module configuration
|
||
|
pamd:
|
||
|
name: "{{ item.name | default('system-auth') }}"
|
||
|
type: "{{ item.type | default('auth') }}"
|
||
|
module_path: "{{ item.module_path | default('pam_unix.so') }}"
|
||
|
control: "{{ item.control }}"
|
||
|
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
||
|
state: "{{ item.state | default('args_present') }}"
|
||
|
loop: "{{ pam_settings + pam_settings_extra }}"
|
||
|
become: True
|
||
|
become_user: root
|