updated molecule, linting and meta
This commit is contained in:
parent
46f33f5174
commit
6112334a4e
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
skip_list:
|
||||
- 'var-naming'
|
||||
- 'no-handler'
|
||||
- 'role-name'
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
truthy:
|
||||
allowed-values: ['true', 'false', 'yes', 'no']
|
||||
line-length:
|
||||
max: 160
|
||||
|
|
@ -5,6 +5,9 @@ Ansible Role to deploy a ZoneMinder IP-CAM server.
|
|||
|
||||
Read into the [official documentation](https://zoneminder.readthedocs.io/en/stable/userguide/gettingstarted.html) on how to add ip-cams and so on.
|
||||
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
[](https://galaxy.ansible.com/ansibleguy/sw_zoneminder)
|
||||
[](https://galaxy.ansible.com/ansibleguy/sw_zoneminder)
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,8 @@
|
|||
galaxy_info:
|
||||
author: 'AnsibleGuy <guy@ansibleguy.net>'
|
||||
namespace: 'ansibleguy'
|
||||
readme: 'README.md'
|
||||
license: 'GPLv3'
|
||||
repository: 'https://github.com/ansibleguy/sw_zoneminder'
|
||||
issue_tracker_url: 'https://github.com/ansibleguy/sw_zoneminder/issues'
|
||||
github_branch: 'stable'
|
||||
min_ansible_version: 2.9.10
|
||||
description: 'Role to provision Zoneminder IP-CAM Servers'
|
||||
platforms:
|
||||
|
|
|
|||
|
|
@ -43,20 +43,15 @@ provisioner:
|
|||
name: ansible
|
||||
verifier:
|
||||
name: ansible
|
||||
lint:
|
||||
name: yamllint
|
||||
scenario:
|
||||
name: default
|
||||
test_sequence:
|
||||
- lint
|
||||
- destroy
|
||||
# - dependency
|
||||
- syntax
|
||||
- create
|
||||
# - prepare
|
||||
- converge
|
||||
- idempotence
|
||||
- check
|
||||
# - side_effect
|
||||
- verify
|
||||
- destroy
|
||||
|
|
|
|||
|
|
@ -42,10 +42,10 @@
|
|||
hosts: grp_tester
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Checking if zoneminder web-service is reachable
|
||||
ansible.builtin.uri:
|
||||
url: 'https://zoneminder.test.ansibleguy.net'
|
||||
return_content: yes
|
||||
validate_certs: false
|
||||
register: page
|
||||
failed_when: "'Zoneminder' not in page.content"
|
||||
- name: Checking if zoneminder web-service is reachable
|
||||
ansible.builtin.uri:
|
||||
url: 'https://zoneminder.test.ansibleguy.net'
|
||||
return_content: yes
|
||||
validate_certs: false
|
||||
register: page
|
||||
failed_when: "'Zoneminder' not in page.content"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@
|
|||
when: ZM_CONFIG.timezone not in NONE_VALUES
|
||||
|
||||
- name: ZoneMinder | Debian | Webserver | Getting local timezone
|
||||
ansible.builtin.shell: "timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d' ' -f2"
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail
|
||||
timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d' ' -f2
|
||||
register: controller_tz
|
||||
delegate_to: localhost
|
||||
changed_when: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue