Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
369 B

---
- 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
ignore_errors: true
- name: Configure authentication with authconfig
command: authconfig --enablemkhomedir --enablesssd --enablesssdauth --update
when: auth_sss_done.rc != 0