Skip to content

Commit

Permalink
Move ansible lint config to standard config file
Browse files Browse the repository at this point in the history
Move them from the Makefile to the specific lint config file. In this
way they are applied also when not running the lint ad make target, but
directly calling ansible-lint.
  • Loading branch information
mpagot committed Oct 4, 2024
1 parent 9b66598 commit f5eafbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
exclude_paths:
- ansible/roles/
- ansible/playbooks/registration_role.yaml
- ansible/playbooks/vars/hana_media.yaml
- ansible/playbooks/vars/hana_vars.yaml
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static-ansible-syntax:
@python3 --version ; python3 tools/ansible_playbook_syntax_check.py

static-ansible-lint:
@ansible-lint ansible/ --exclude ansible/playbooks/registration_role.yaml --exclude ansible/playbooks/vars/hana_media.yaml --exclude ansible/playbooks/vars/hana_vars.yaml
@ansible-lint --offline ansible/

test-ut:
@cd scripts/qesap/ ; tox -e py311
Expand Down

0 comments on commit f5eafbf

Please sign in to comment.