Re-organize zm host deployment

This commit is contained in:
Timo Makinen 2021-08-30 22:30:01 +00:00
parent f7bc394144
commit e8f56aa4c6

View file

@ -22,15 +22,36 @@
roles:
- base
- dhcpd
- mod_auth_gssapi
- role: kerberos/keytab
keytab: /etc/httpd/httpd.keytab
principals: HTTP/zm.foo.sh@FOO.SH
group: apache
- zoneminder
tasks:
- name: run handlers to get interfaces configured
meta: flush_handlers
- name: copy dns zone files
copy:
dest: "/var/lib/unbound/{{ item }}"
src: "/srv/dns/{{ item }}"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart unbound
with_items:
- 26.20.172.in-addr.arpa
- cam.foo.sh
- import_role:
name: unbound
- include_role:
name: "{{ item }}"
with_items:
- dhcpd
- zoneminder
- name: install extra packages for debugging
package:
name: rtmpdump
@ -56,17 +77,3 @@
path: /etc/chrony.conf
regexp: "^#?allow .*"
line: "allow 172.20.26.0/24"
- name: copy dns zone files
copy:
dest: "/var/lib/unbound/{{ item }}"
src: "/srv/dns/{{ item }}"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
notify: restart unbound
with_items:
- 26.20.172.in-addr.arpa
- cam.foo.sh
- import_role:
name: unbound