zoneminder: Add support for remote dabase server

This commit is contained in:
Timo Makinen 2021-08-28 16:36:19 +00:00
parent 4cc67c2c27
commit 0f76ae8a3e
4 changed files with 18 additions and 5 deletions

View file

@ -41,6 +41,16 @@
group: apache
notify: restart zoneminder
- name: remove mariadb depency from unit file
shell:
cmd: >-
sed -e 's/mariadb\.service//' /lib/systemd/system/zoneminder.service
> /etc/systemd/system/zoneminder.service
creates: /etc/systemd/system/zoneminder.service
warn: false
notify: restart zoneminder
when: zm_mysql_host != "localhost"
# selinux doesn't allow create this
- name: create stub web log
file: