init ldap_client
This commit is contained in:
9
ansible/roles/ldap_client/tasks/authselect.yaml
Normal file
9
ansible/roles/ldap_client/tasks/authselect.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: Check if authselect current is already using sssd
|
||||
shell: 'authselect current | grep -Pzo "(?s)sssd.*?mkhomedir"'
|
||||
register: grep_result
|
||||
ignore_errors: true
|
||||
|
||||
- name: Run authselect
|
||||
command: authselect select sssd with-mkhomedir
|
||||
when: grep_result.rc != 0
|
||||
|
||||
Reference in New Issue
Block a user