From 02e1c8f332237af4cee7ba27ce4de3584afd48d6 Mon Sep 17 00:00:00 2001 From: Nikolai Mishin Date: Sat, 20 Jul 2024 23:44:25 +0200 Subject: [PATCH] Add ansible-lint job to the pipeline (#30) Signed-off-by: Nikolai Mishin --- .github/workflows/molecule-test.yml | 16 ++++++++++++++++ tasks/iptables.yml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/molecule-test.yml b/.github/workflows/molecule-test.yml index 532a1a0..d2d4cdb 100644 --- a/.github/workflows/molecule-test.yml +++ b/.github/workflows/molecule-test.yml @@ -9,7 +9,23 @@ on: - main jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + with: + path: "${{ github.repository }}" + - name: Run ansible lint + uses: ansible/ansible-lint-action@v6.17.0 + with: + path: "." + + molecule: + needs: + - lint runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/tasks/iptables.yml b/tasks/iptables.yml index 795b24c..613679c 100644 --- a/tasks/iptables.yml +++ b/tasks/iptables.yml @@ -81,7 +81,7 @@ - openvpn_iptables_existing_save.rc == 0 failed_when: - openvpn_iptables_existing_save.rc != 0 - when: __iptables_installed.changed | bool + when: __iptables_installed.changed | bool # noqa no-handler - name: Enable iptables ansible.builtin.service: