TOSIT-IO / tdp-collection-prerequisites

Ansible collection with TDP prerequisites
Apache License 2.0
3 stars 10 forks source link

ldap_kerberos role fails if sssd-kcm is not installed #33

Closed Nuttymoon closed 2 years ago

Nuttymoon commented 2 years ago

If sssd-kcm is not installed on the hosts, the file kcm_default_ccache doesn't exist:

fatal: [edge-01]: FAILED! => changed=false 
  ansible_facts:
    discovered_interpreter_python: /usr/libexec/platform-python
  msg: Path /etc/krb5.conf.d/kcm_default_ccache does not exist !
  rc: 257

We should check the file's existence before trying to modify it.