Skip to content

Commit

Permalink
fix sssd handler name
Browse files Browse the repository at this point in the history
  • Loading branch information
ajanis committed Jul 18, 2024
1 parent 3dd6072 commit 84ad69b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tasks/ldap_client_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
notify:
- restart_login_services
- restart_ns_daemons
- restart_sssd
- Restart SSSD
when:
- ansible_distribution_major_version >= "8"

Expand Down Expand Up @@ -87,18 +87,16 @@
when:
- openldap_server_enable_autofs

- ansible.builtin.meta: flush_handlers
- name: Flush handlers
ansible.builtin.meta: flush_handlers

- name: Run 'authconfig --enableldap --enableldapauth --enablemkhomedir --update'
ansible.builtin.command: authconfig --enableldap --enableldapauth --enablemkhomedir --update
when:
- run_authconfig | default(False)
- ansible_distribution_major_version < "8"

#- name: "Run 'authselect select sssd with-mkhomedir with-pamaccess --force' [CentOS 8]"
# command: "authselect select sssd with-mkhomedir with-pamaccess --force"
# when:
# - run_authconfig | default(False)
# - ansible_distribution_major_version >= "8"
register: run_authconfig
changed_when: run_authconfig is success

- name: Create user home directories
ansible.builtin.file:
Expand All @@ -107,7 +105,7 @@
owner: "{{ item.value.uid }}"
group: "{{ item.value.gid }}"
mode: "0755"
loop: "{{ ssh_users|default({})|dict2items }}"
loop: "{{ ssh_users | default({}) | dict2items }}"
loop_control:
label: "{{ item.key }}"
when:
Expand Down

0 comments on commit 84ad69b

Please sign in to comment.