Skip to content

Commit

Permalink
Add ansible-lint job to the pipeline (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Mishin <[email protected]>
  • Loading branch information
Nmishin authored Jul 20, 2024
1 parent 2f5ba72 commit 02e1c8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/molecule-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
path: "."


molecule:
needs:
- lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion tasks/iptables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 02e1c8f

Please sign in to comment.