35 lines
897 B
YAML
35 lines
897 B
YAML
|
- 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
|
||
|
|
||
|
- name: Copy zoneminder nginx config.
|
||
|
ansible.builtin.copy:
|
||
|
src: zoneminder.conf
|
||
|
dest: /etc/nginx/conf.d/zoneminder.conf
|
||
|
notify: reload nginx
|