chore(ansible-config): also define collections path for ansible-lint

This fixes the local ansible-lint run.
This commit is contained in:
saibotk 2024-03-10 00:59:29 +01:00
parent 1b66ab22e5
commit 79dabffd40
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
[defaults]
roles_path = ./roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
roles_path = ./roles:$HOME/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
collections_path = ./collections:$HOME/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections
inventory = ./inventory
retry_files_enabled = false
vault_password_file = .vault_pass

View file

@ -2,3 +2,4 @@
# Otherwise ansible-lint always tries to get a vault password and fails.
[defaults]
roles_path = ./roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
collections_path = ./collections:~/.ansible/collections:/usr/share/ansible/collections:/etc/ansible/collections