2022-01-24 22:13:12 +01:00
|
|
|
- name: Install dependencies.
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
|
|
|
- apt-transport-https
|
|
|
|
- gnupg
|
|
|
|
- php-mysql
|
|
|
|
- fcgiwrap
|
|
|
|
|
|
|
|
- name: Add zoneminder apt gpg key.
|
|
|
|
ansible.builtin.apt_key:
|
|
|
|
url: https://zmrepo.zoneminder.com/debian/archive-keyring.gpg
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Add zoneminder apt repository
|
|
|
|
ansible.builtin.apt_repository:
|
|
|
|
repo: deb https://zmrepo.zoneminder.com/debian/release-1.36 bullseye/
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
- name: Install zoneminder.
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: zoneminder
|
|
|
|
|
|
|
|
- name: Configure zoneminder system paths.
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: /etc/zm/conf.d/01-system-paths.conf
|
|
|
|
regexp: ^ZM_PATH_ZMS
|
|
|
|
line: ZM_PATH_ZMS=/cgi-bin/nph-zms
|
|
|
|
|
2022-01-25 10:30:23 +01:00
|
|
|
- name: Disable no-ssl default nginx site.
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/nginx/conf.d/no-ssl.default.conf
|
|
|
|
state: absent
|
|
|
|
notify: reload nginx
|
|
|
|
|
2022-01-24 22:13:12 +01:00
|
|
|
- name: Copy zoneminder nginx config.
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: zoneminder.conf
|
|
|
|
dest: /etc/nginx/conf.d/zoneminder.conf
|
|
|
|
notify: reload nginx
|