ci: share a Molecule base config with prerun off and smart gathering
Add .config/molecule/config.yml, which molecule merges under every scenario's molecule.yml. prerun is off: the CI wrapper already puts the checkout first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario reinstall of mortis.kamino into ANSIBLE_HOME is redundant. gathering is smart, so each host's facts are gathered once per playbook run instead of in every play. Add .config to build_ignore so scripts/check_tarball.py does not fail the build, and reword the Molecule rule and the two script comments that said molecule installs the collection into each scenario's ANSIBLE_HOME. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
6e3ea4521b
commit
7d11d23294
5 files changed
+18
-6
No files matched your search
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# The Molecule workflow's "Run the scenarios" step: `molecule test` for each scenario directory on
|
||||
# stdin, MOLECULE_LANES (default 4) at a time, each with its own log and ANSIBLE_HOME under
|
||||
# <work-dir>/<n>/ (molecule reinstalls the collection there with --force). Exit 1 on a failure.
|
||||
# <work-dir>/<n>/ (no collection is installed there: .config/molecule/config.yml sets prerun false).
|
||||
# Exit 1 on a failure.
|
||||
#
|
||||
# scripts/run_molecule_scenarios.sh <work-dir> < scenario-dirs
|
||||
set -euo pipefail
|
||||
|
||||
Reference in new issue
Block a user