Add zoneminder to zm hosts
This commit is contained in:
parent
6a79379d85
commit
3eebad51dc
1 changed files with 22 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue