Ansible Role to provision Zoneminder IP-CAM Servers
Go to file
AnsibleGuy da7e421d80
change role licenses
2024-07-20 18:39:02 +02:00
.github updated funding 2024-03-16 12:03:31 +01:00
defaults/main moved var-combining to separate file 2023-05-13 16:25:53 +02:00
meta change role licenses 2024-07-20 18:39:02 +02:00
molecule/default molecule fix systemd-boot 2024-05-04 16:33:20 +02:00
tasks fixed pipefail usage 2023-07-25 18:24:06 +02:00
templates/etc fixed database password generation and meta, updated molecule-config 2022-08-12 16:58:13 +02:00
.ansible-lint.yml lint fixes 2023-01-05 21:38:08 +01:00
.pylintrc lint fixes 2023-01-21 17:34:57 +01:00
.yamllint updated molecule, linting and meta 2022-08-12 18:58:06 +02:00
LICENSE.txt change role licenses 2024-07-20 18:39:02 +02:00
README.md updated readme layout 2024-06-02 12:30:20 +02:00
playbook.yml added github workflow for linting 2023-07-14 18:17:17 +02:00
requirements.yml lint fix 2023-01-21 17:43:41 +01:00
requirements_lint.txt added github workflow for linting 2023-07-14 18:17:17 +02:00

README.md

ZoneMinder

Ansible Role - ZoneMinder

Ansible Role to deploy a ZoneMinder IP-CAM server.

Read into the official documentation on how to add ip-cams and so on.

Buy me a coffee

Molecule Test Status YamlLint Test Status PyLint Test Status Ansible-Lint Test Status Ansible Galaxy

Molecule Logs: Short, Full

Tested:

  • Debian 11

Install

# latest
ansible-galaxy role install git+https://github.com/ansibleguy/sw_zoneminder

# from galaxy
ansible-galaxy install ansibleguy.sw_zoneminder

# or to custom role-path
ansible-galaxy install ansibleguy.sw_zoneminder --roles-path ./roles

# install dependencies
ansible-galaxy install -r requirements.yml

Usage

You want a simple Ansible GUI? Check-out my Ansible WebUI

Config

Define the zoneminder dictionary as needed.

Example for a zoneminder server:

zoneminder:
  timezone: 'Europe/Vienna'
  tools: true  # install useful admin-tools
  
  apache:
    domain: 'zoneminder.template.ansibleguy.net'
    aliases: ['zm.template.ansibleguy.net']

    ssl:
      mode: 'letsencrypt'  # or selfsigned/ca
      #  if you use 'selfsigned' or 'ca':
      #    cert:
      #      cn: 'ZoneMinder Server'
      #      org: 'AnsibleGuy'
      #      email: 'zoneminder@template.ansibleguy.net'
    letsencrypt:
      email: 'zoneminder@template.ansibleguy.net'
  
  

Bare minimum example:

zoneminder:
  apache:
    domain: 'zoneminder.template.ansibleguy.net' 

You might want to use 'ansible-vault' to encrypt your passwords:

ansible-vault encrypt_string

Execution

Run the playbook:

ansible-playbook -K -D -i inventory/hosts.yml playbook.yml --ask-vault-pass

There are also some useful tags available:

  • config

Functionality

  • Package installation

    • ZoneMinder Server
  • Configuration

    • Default opt-ins:

      • Database setup
      • Webserver setup
    • Default opt-outs:

      • Admin-tools
    • Default config:

      • Logging to syslog
      • Self-Signed certificate

Info