fix(lint): mock the dependency modules system_baseline calls
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 19s
Molecule / molecule (pull_request) Successful in 6m18s

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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-14 10:32:15 +00:00
1 parent 9c705a7f93
commit 424f76c164
1 file changed
+9
+9
View File
@@ -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