Skip to content

Commit

Permalink
add ansible-syntax and update ansible-lint to not run in container
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Sep 5, 2023
1 parent 8a7dc42 commit 121a58f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,21 @@ jobs:

ansible-lint:
runs-on: ubuntu-latest
container: pipelinecomponents/ansible-lint:latest
steps:
- uses: actions/checkout@v4
- run: |
apt install -y -qq ansible-lint git
git --version
ansible-lint --version
ansible-lint -v
ansible-syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
apt install -y -qq ansible git
git --version
ansible-galaxy --version
ansible-playbook --version
ansible-playbook --syntax-check --list-tasks playbooks/*.yml
3 changes: 2 additions & 1 deletion roles/common/tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- hosts: localhost
- name: Test
hosts: localhost
remote_user: root
roles:
- common

0 comments on commit 121a58f

Please sign in to comment.