mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
14 lines
394 B
YAML
14 lines
394 B
YAML
---
|
|
|
|
- name: Check if authconfig needs to update pam config
|
|
command: "grep -P '^auth\\s+sufficient\\s+pam_sss.so' /etc/pam.d/system-auth"
|
|
register: auth_sss_done
|
|
changed_when: False
|
|
failed_when: False
|
|
tags: auth
|
|
|
|
- name: Configure authentication with authconfig
|
|
command: authconfig --enablemkhomedir --enablesssd --enablesssdauth --update
|
|
when: auth_sss_done.rc != 0
|
|
tags: auth
|