Skip to content

Commit

Permalink
ci: Use supported ansible-lint action; run ansible-lint against the c…
Browse files Browse the repository at this point in the history
…ollection

The old ansible-community ansible-lint is deprecated.  There is a
new ansible-lint github action.

The latest Ansible repo gating tests run ansible-lint against
the collection format instead of against individual roles.
We have to convert the role to collection format before running
ansible-test.

Role developers can run this locally using
`tox -e collection,ansible-lint-collection`
See linux-system-roles/tox-lsr#125

Add `---` doc start to .markdownlint.yaml

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Dec 13, 2023
1 parent 263a314 commit 974c8ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
# doesn't like mock_roles
sed -e '/^mock_roles:/d' -e '/- linux-system-roles[.]/d' \
-i "$coll_dir/.ansible-lint"
echo DEBUG
cat "$coll_dir/tests/kernel_settings/tests_default.yml"
- name: Run ansible-lint
uses: ansible/ansible-lint@v6
Expand Down

0 comments on commit 974c8ac

Please sign in to comment.