mod_auth_gssapi: Set keytab path in environment variables

This commit is contained in:
Timo Makinen 2021-03-18 11:01:19 +00:00
parent 40e4157349
commit 5eda17494d
2 changed files with 10 additions and 5 deletions

View file

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

View file

@ -5,10 +5,18 @@
state: installed
notify: restart apache
- name: create httpd service drop-in directory
file:
path: /etc/systemd/system/httpd.service.d
state: directory
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: set keytab path
copy:
dest: /etc/httpd/conf.local.d/00-gssapi.conf
src: gssapi.conf
dest: /etc/systemd/system/httpd.service.d/keytab.conf
content: "[Service]\nEnvironment=KRB5_KTNAME=/etc/httpd/httpd.keytab\n"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"