lint: might fix it now

This commit is contained in:
saibotk 2022-08-13 19:53:34 +02:00
parent c7deaa99c2
commit dc104d96fb
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ ansible-lint:
variables:
ANSIBLE_CONFIG: "$CI_PROJECT_DIR/ansible.lint.cfg"
script:
- ansible-galaxy install -f -r requirements.yml
- ansible-lint --version
- ansible-lint -f codeclimate roles/ playbooks/ > ansible-lint-report.json
artifacts:

View file

@ -1,4 +1,4 @@
# Empty stub config file, so ansible-lint does not use the default config's vault_password_file.
# Otherwise ansible-lint always tries to get a vault password and fails.
[defaults]
roles_path = ./roles
roles_path = ./roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles