mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
13
roles/sssd_ad_auth/tasks/pam_RedHat.yml
Normal file
13
roles/sssd_ad_auth/tasks/pam_RedHat.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Check if authconfig needs to update pam config
|
||||
command: "grep -c -P '^auth\\s+sufficient\\s+pam_sss.so' /etc/pam.d/system-auth"
|
||||
register: ad_authconfig_done
|
||||
changed_when: False
|
||||
failed_when: False
|
||||
tags: auth
|
||||
|
||||
- name: Configure the PAM stack
|
||||
command: authconfig --enablesssd --enablesssdauth --enablemkhomedir --update
|
||||
when: ad_authconfig_done.stdout | int < 1
|
||||
tags: auth
|
Reference in New Issue
Block a user