ci(bind9): add Molecule and align lint
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
5 files changed
+33
-3
No files matched your search
File renamed without changes.
@@ -16,5 +16,5 @@ jobs:
|
||||
- name: Run ansible-lint
|
||||
uses: ansible/ansible-lint@9bce2bfb8f4a984e6b13767bc0d6bf0a49492164 # v26.10.1
|
||||
with:
|
||||
args: "--config-file .ansible-lint"
|
||||
args: "--config-file .ansible-lint.yml"
|
||||
setup_python: "true"
|
||||
@@ -0,0 +1,28 @@
|
||||
name: Molecule
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [ "opened", "reopened", "synchronize" ]
|
||||
push:
|
||||
branches: [ '**' ]
|
||||
tags-ignore: [ '**' ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
molecule:
|
||||
name: Molecule
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
path: bind9
|
||||
- name: Install molecule
|
||||
run: |
|
||||
apt update --yes
|
||||
apt install --yes python3-pip
|
||||
pip3 install --break-system-packages ansible-core molecule docker
|
||||
- name: Run molecule
|
||||
run: molecule test
|
||||
working-directory: bind9
|
||||
@@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
#
|
||||
# Documentation:
|
||||
# https://yamllint.readthedocs.io/en/stable/
|
||||
+2
-2
@@ -142,7 +142,7 @@
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
register: _bind9_systemd_drop_in
|
||||
- name: Systemd reload
|
||||
- name: Systemd reload # noqa: no-handler
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
when: _bind9_systemd_drop_in.changed
|
||||
@@ -155,7 +155,7 @@
|
||||
path: "{{ bind9_systemd_dropin_dir }}/override.conf"
|
||||
state: "absent"
|
||||
register: _bind9_systemd_drop_in
|
||||
- name: Systemd reload
|
||||
- name: Systemd reload # noqa: no-handler
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
when: _bind9_systemd_drop_in.changed
|
||||
|
||||
Reference in new issue
Block a user