Skip to content

Commit

Permalink
Disable ansible-lint on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mkllnk committed Oct 22, 2024
1 parent 4f924aa commit 983e2e5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ on:
pull_request:

jobs:
ansible-lint:
runs-on: ubuntu-20.04
#ansible-lint:
# runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10.15'
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10.15'

- name: Set up Ansible
run: |
pip install -r requirements.txt
bin/setup
# - name: Set up Ansible
# run: |
# pip install -r requirements.txt
# bin/setup

- name: Ansible Lint
run: ansible-lint playbooks/*.yml --exclude community
# - name: Ansible Lint
# run: ansible-lint playbooks/*.yml --exclude community

playbook-tests:
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Run the [ansible-lint](https://github.com/willthames/ansible-lint) checks using:
ansible-lint site.yml --exclude=community
```

This is also run in CI.
~~~This is also run in CI.~~~
## Security
Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ansible==2.10.7
ansible-lint==4.2.0
# This version doesn't work with the current Ansible version.
# But upgrading seems to break the build.
# TODO: upgrade ans fix ansible-lint
#ansible-lint==4.2.0
yamllint==1.21.0
jinja2<3.1

0 comments on commit 983e2e5

Please sign in to comment.