xoxys.pam/tasks/pam.yml

16 lines
634 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 }}"
2019-11-09 12:37:34 +00:00
new_type: "{{ item.new_type | default(omit) }}"
new_module_path: "{{ item.new_module_path | default(omit) }}"
new_control: "{{ izem.new_control | default(omit) }}"
2019-11-06 19:26:03 +00:00
state: "{{ item.state | default('args_present') }}"
2019-11-09 12:37:34 +00:00
module_arguments: "{{ item.module_arguments | default(omit) }}"
2019-11-06 19:26:03 +00:00
loop: "{{ pam_settings + pam_settings_extra }}"
become: True
become_user: root