From 52489357ec7b7bafb6fac96ca5f3da1756c8d89d Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 4 Feb 2026 13:48:04 -0700 Subject: [PATCH] ci: ansible-lint - remove .collection directory from converted collection [citest_skip] The new ansible-lint@v26 does not like it when there is a .collection directory with a galaxy.yml in the converted collection, so remove it, since it is not needed for ansible-lint. Signed-off-by: Rich Megginson --- .github/workflows/ansible-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index a82733f..53d8934 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -44,7 +44,7 @@ jobs: TOXENV=collection lsr_ci_runtox coll_dir=".tox/ansible_collections/$LSR_ROLE2COLL_NAMESPACE/$LSR_ROLE2COLL_NAME" # cleanup after collection conversion - rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan + rm -rf "$coll_dir/.ansible" .tox/ansible-plugin-scan "$coll_dir/.collection" # ansible-lint action requires a .git directory??? # https://github.com/ansible/ansible-lint/blob/main/action.yml#L45 mkdir -p "$coll_dir/.git"