feat(role): add ansible-lint, fix ansible-lint issues
All checks were successful
checks-test / Lint (push) Successful in 53s
checks-test / molecule (rockylinux9) (push) Successful in 2m59s
checks-test / molecule (debian11) (push) Successful in 3m10s
checks-test / molecule (ubuntu2204) (push) Successful in 3m24s

This commit is contained in:
2024-01-14 19:21:16 +02:00
parent e776a43962
commit f3b6072eb6
6 changed files with 18 additions and 11 deletions

View File

@@ -26,9 +26,11 @@ jobs:
with:
python-version: '3.x'
- name: Intall test dependencies
run: pip3 install yamllint
- name: Lint code
run: pip3 install yamllint ansible-lint
- name: Lint code with yamllint
run: 'yamllint .'
- name: Lint code with yamllint
run: 'ansible-lint --profile production --show-relpath .'
molecule:
name: molecule
runs-on: ubuntu-latest