xoxys.pam/tasks/pam.yml

13 lines
458 B
YAML
Raw Normal View History

2019-11-06 19:26:03 +00:00
---
- 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