From 424f76c164be7f642e4a99effef7f8c940275cce Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 14 Nov 2026 10:32:15 +0000 Subject: [PATCH] fix(lint): mock the dependency modules system_baseline calls Lint runs offline in the ci image, which bakes no collections, so community.general and ansible.posix modules could not be resolved (syntax-check[unknown-module]). Mock them as the scenarios' roles are mocked; molecule runs them against the installed collections. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- .ansible-lint | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ansible-lint b/.ansible-lint index a20be61..20627ae 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -20,3 +20,12 @@ mock_roles: - mortis.kamino.network_interfaces - mortis.kamino.system_baseline - mortis.kamino.systemd_hardening + +# Lint runs offline and the ci image bakes no collections, so modules from the dependencies +# declared in galaxy.yml cannot be resolved. Their arguments are exercised by molecule, which +# installs the collections. +mock_modules: + - ansible.posix.mount + - ansible.posix.sysctl + - community.general.locale_gen + - community.general.timezone