From 79dabffd40f8a5f4210985b1719b5c01f59fc374 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 10 Mar 2024 00:59:29 +0100 Subject: [PATCH] chore(ansible-config): also define collections path for ansible-lint This fixes the local ansible-lint run. --- ansible.cfg | 4 +++- ansible.lint.cfg | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible.cfg b/ansible.cfg index 4c37a5f..25383ac 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -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 diff --git a/ansible.lint.cfg b/ansible.lint.cfg index 52aca12..d89d402 100644 --- a/ansible.lint.cfg +++ b/ansible.lint.cfg @@ -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