diff --git a/.forgejo/workflows/molecule.yml b/.forgejo/workflows/molecule.yml new file mode 100644 index 0000000..59dc096 --- /dev/null +++ b/.forgejo/workflows/molecule.yml @@ -0,0 +1,18 @@ +--- +on: [push] +jobs: + lint: + runs-on: docker + container: + image: code.waks.be/nishiki/molecule:docker + steps: + - uses: actions/checkout@v3 + - run: ansible-lint . + - run: yamllint . + molecule: + runs-on: docker + container: + image: code.waks.be/nishiki/molecule:docker + steps: + - uses: actions/checkout@v3 + - run: molecule test diff --git a/.yamllint b/.yamllint index 32d5791..2f9af0a 100644 --- a/.yamllint +++ b/.yamllint @@ -4,10 +4,9 @@ extends: default ignore: | .kitchen* vendor/ - test/ + .forgejo/ rules: line-length: max: 120 level: warning - truthy: false diff --git a/README.md b/README.md index 29bdd00..31c4d23 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Version](https://img.shields.io/badge/latest_version-1.3.0-green.svg)](https://code.waks.be/nishiki/ansible-role-bind/releases) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://code.waks.be/nishiki/ansible-role-bind/src/branch/main/LICENSE) +[![Build](https://code.waks.be/nishiki/ansible-role-bind/actions/workflows/molecule.yml/badge.svg?branch=main)](https://code.waks.be/nishiki/ansible-role-bind/actions?workflow=molecule.yml) Install and configure bind with dnssec diff --git a/tasks/zones.yml b/tasks/zones.yml index 537f87e..1964a11 100644 --- a/tasks/zones.yml +++ b/tasks/zones.yml @@ -49,7 +49,7 @@ ansible.builtin.find: path: /etc/bind/zones file_type: directory - recurse: no + recurse: false register: zone_folders - name: Delete old zone file