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 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
9c705a7f93
commit
424f76c164
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user