mod_auth_gssapi: Fix keytab path config for CentOS 8

CentOS 8 doesn't apache doesn't read /etc/sysconfig/httpd anymore so
try to set keytab path location in apache config files.
This commit is contained in:
Timo Makinen 2021-03-18 00:28:33 +00:00
parent a591bd7e0e
commit 5d9bc1608f
2 changed files with 9 additions and 4 deletions

View file

@ -0,0 +1,3 @@
<Location />
GssapiCredStore keytab:/etc/httpd/httpd.keytab
</Location>

View file

@ -6,8 +6,10 @@
notify: restart apache
- name: set keytab path
lineinfile:
path: /etc/sysconfig/httpd
regexp: "^KRB5_KTNAME=.*"
line: KRB5_KTNAME=/etc/httpd/httpd.keytab
copy:
dest: /etc/httpd/conf.local.d/00-gssapi.conf
src: gssapi.conf
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart apache