Add zoneminder to zm hosts

This commit is contained in:
Timo Makinen 2021-03-31 22:16:12 +00:00
parent 6a79379d85
commit 3eebad51dc

View file

@ -22,3 +22,25 @@
roles: roles:
- base - base
- mod_auth_gssapi
- role: kerberos/keytab
keytab: /etc/httpd/httpd.keytab
principals: HTTP/zm.foo.sh@FOO.SH
group: apache
- zoneminder
tasks:
- name: require authentication for munin web
copy:
dest: /etc/httpd/conf.local.d/zoneminder-auth.conf
content: |
<Location /zm>
AuthType GSSAPI
GssapiBasicAuth Off
AuthName "Password Required"
Require valid-user
</Location>
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart apache