Re-organize zm host deployment
This commit is contained in:
parent
f7bc394144
commit
e8f56aa4c6
1 changed files with 23 additions and 16 deletions
|
@ -22,15 +22,36 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- dhcpd
|
|
||||||
- mod_auth_gssapi
|
- mod_auth_gssapi
|
||||||
- role: kerberos/keytab
|
- role: kerberos/keytab
|
||||||
keytab: /etc/httpd/httpd.keytab
|
keytab: /etc/httpd/httpd.keytab
|
||||||
principals: HTTP/zm.foo.sh@FOO.SH
|
principals: HTTP/zm.foo.sh@FOO.SH
|
||||||
group: apache
|
group: apache
|
||||||
- zoneminder
|
|
||||||
|
|
||||||
tasks:
|
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
|
- name: install extra packages for debugging
|
||||||
package:
|
package:
|
||||||
name: rtmpdump
|
name: rtmpdump
|
||||||
|
@ -56,17 +77,3 @@
|
||||||
path: /etc/chrony.conf
|
path: /etc/chrony.conf
|
||||||
regexp: "^#?allow .*"
|
regexp: "^#?allow .*"
|
||||||
line: "allow 172.20.26.0/24"
|
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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue