ansibleguy.sw_zoneminder

Ansible Role - ZoneMinder

This Ansible Role helps you set up a ZoneMinder IP-CAM server.

For guidance on adding IP cameras and other details, check the official documentation.

Buy me a coffee

Test Status Badges

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

Molecule Logs

Tested on:

  • Debian 11

Installation

To install the ZoneMinder role, run the following commands:

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

# from galaxy
ansible-galaxy install ansibleguy.sw_zoneminder

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

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

Usage

If you want a simple Ansible GUI, check out my Ansible WebUI.

Configuration

Customize the Zoneminder settings as needed.

Example configuration 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/snakeoil
      #  if using 'selfsigned' or 'ca':
      #    cert:
      #      cn: 'ZoneMinder Server'
      #      org: 'AnsibleGuy'
      #      email: '[email protected]'
    letsencrypt:
      email: '[email protected]'

Minimal example:

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

You can use 'ansible-vault' to encrypt your passwords:

ansible-vault encrypt_string

Execution

Run the playbook with:

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

You can also use these tags for specific tasks:

  • config

Functionality

  • Package Installation

    • ZoneMinder Server
  • Configuration Options

    • Default included features:

      • Database setup
      • Webserver setup
    • Default excluded features:

      • Admin tools
    • Default settings:

      • Logging to syslog
      • Self-Signed certificate

Additional Information

Informazioni sul progetto

Role to provision Zoneminder IP-CAM Servers

Installa
ansible-galaxy install ansibleguy.sw_zoneminder
Licenza
other
Download
2.1k
Proprietario
[email protected] | GPG: https://badges.ansibleguy.net/public.gpg