From c27abf43f81fc6639f16dd7a5eb75081988b5351 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Fri, 12 Aug 2022 20:30:04 +0200 Subject: [PATCH] fixed meta, linting updates, added ansible-lint config and test-badges --- .ansible-lint.yml | 2 ++ README.md | 6 +++--- molecule/default/verify.yml | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.ansible-lint.yml b/.ansible-lint.yml index 7c0a7ab..3026a73 100644 --- a/.ansible-lint.yml +++ b/.ansible-lint.yml @@ -4,3 +4,5 @@ skip_list: - 'var-naming' - 'no-handler' - 'role-name' + - 'ignore-errors' + - 'yaml' diff --git a/README.md b/README.md index 7953f69..4c9b067 100644 --- a/README.md +++ b/README.md @@ -5,9 +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. -[![Molecule Test Status](https://badges.ansibleguy.net/sw_zoneminder.molecule.svg)]() -[![YamlLint Test Status](https://badges.ansibleguy.net/sw_zoneminder.yamllint.svg)]() -[![Ansible-Lint Test Status](https://badges.ansibleguy.net/sw_zoneminder.ansiblelint.svg)]() +[![Molecule Test Status](https://badges.ansibleguy.net/sw_zoneminder.molecule.svg)](https://molecule.readthedocs.io/en/latest/) +[![YamlLint Test Status](https://badges.ansibleguy.net/sw_zoneminder.yamllint.svg)](https://yamllint.readthedocs.io/en/stable/) +[![Ansible-Lint Test Status](https://badges.ansibleguy.net/sw_zoneminder.ansiblelint.svg)](https://ansible-lint.readthedocs.io/en/latest/) [![Ansible Galaxy](https://img.shields.io/ansible/role/59996)](https://galaxy.ansible.com/ansibleguy/sw_zoneminder) [![Ansible Galaxy Downloads](https://img.shields.io/badge/dynamic/json?color=blueviolet&label=Galaxy%20Downloads&query=%24.download_count&url=https%3A%2F%2Fgalaxy.ansible.com%2Fapi%2Fv1%2Froles%2F59996%2F%3Fformat%3Djson)](https://galaxy.ansible.com/ansibleguy/sw_zoneminder) diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index c5f689c..f499006 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -25,7 +25,7 @@ - 'apache2.service' - name: Checking ports - wait_for: + ansible.builtin.wait_for: port: "{{ item }}" timeout: 1 msg: "Checking port {{ item }}" @@ -35,7 +35,8 @@ - 80 - 443 - - debug: + - name: 'Test' + ansible.builtin.debug: var: port_test - name: Verify