I found the culprit. I thought I would post my findings for posterity.
Following the /var/log/messages file on the rhel6 managed host:
Nov 10 15:18:58 ansibletest-rhel6 sssd: Starting up
Nov 10 15:18:58 ansibletest-rhel6 sssd[be[nspnet.net]]: Starting up
Nov 10 15:18:59 ansibletest-rhel6 sssd[pam]: Starting up
Nov 10 15:18:59 ansibletest-rhel6 sssd[nss]: Starting up
Nov 10 15:19:00 ansibletest-rhel6 ansible-command: Invoked with warn=True
executable=None _uses_shell=True _raw_params=authconfig --enablesssd
--enablesssdauth
--enablemkhomedir --update removes=None creates=None chdir=None stdin=None
Nov 10 15:19:00 ansibletest-rhel6 sssd[pam]: Shutting down
Nov 10 15:19:00 ansibletest-rhel6 sssd[nss]: Shutting down
You notice sssd does indeed start, but after authconfig it shuts down
(unexepcted). Here is what my handlers file looked like:
---
# handlers file for ldap_users
- name: restart sssd
service:
name: sssd
state: restarted
enabled: yes
pattern: /usr/sbin/sssd
- name: authconfig update
shell: "authconfig --enablesssd --enablesssdauth --enablemkhomedir
--update"
ignore_errors: yes
changed_when: false
I reversed the order and it works fine now:
---
# handlers file for ldap_users
- name: authconfig update
shell: "authconfig --enablesssd --enablesssdauth --enablemkhomedir
--update"
ignore_errors: yes
changed_when: false
- name: restart sssd
service:
name: sssd
state: restarted
enabled: yes
pattern: /usr/sbin/sssd
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3f6dc8c9-b218-47d9-9fa0-3788b1f3c8f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.