ansibleguy.sw_zoneminder
Ansible角色 - ZoneMinder
Ansible角色用于部署ZoneMinder IP-CAM服务器。
阅读官方文档,了解如何添加IP摄像头等。
已测试:
- Debian 11
安装
# 最新版
ansible-galaxy role install git+https://github.com/ansibleguy/sw_zoneminder
# 从Galaxy安装
ansible-galaxy install ansibleguy.sw_zoneminder
# 或指定自定义角色路径
ansible-galaxy install ansibleguy.sw_zoneminder --roles-path ./roles
# 安装依赖
ansible-galaxy install -r requirements.yml
使用
想要一个简单的Ansible图形界面?查看我的Ansible WebUI
配置
根据需要定义zoneminder字典。
ZoneMinder服务器的示例:
zoneminder:
timezone: 'Europe/Vienna'
tools: true # 安装有用的管理工具
apache:
domain: 'zoneminder.template.ansibleguy.net'
aliases: ['zm.template.ansibleguy.net']
ssl:
mode: 'letsencrypt' # 或 selfsigned/ca/snakeoil
# 如果使用'selfsigned'或'ca':
# cert:
# cn: 'ZoneMinder Server'
# org: 'AnsibleGuy'
# email: '[email protected]'
letsencrypt:
email: '[email protected]'
最低配置示例:
zoneminder:
apache:
domain: 'zoneminder.template.ansibleguy.net'
您可能想使用'ansible-vault'来加密您的密码:
ansible-vault encrypt_string
执行
运行剧本:
ansible-playbook -K -D -i inventory/hosts.yml playbook.yml --ask-vault-pass
还有一些有用的标签可用:
- config
功能
软件包安装
配置
默认选项:
- 数据库设置
- Web服务器设置
默认不选项:
- 管理工具
默认配置:
- 日志记录到syslog
- 自签名证书
信息
安装
ansible-galaxy install ansibleguy.sw_zoneminder
许可证
other
下载
2.1k
拥有者
[email protected] | GPG: https://badges.ansibleguy.net/public.gpg