Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter from the same change stays. Refs #455 Assisted-by: Claude Code
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
---
|
|
# Merged under every scenario's molecule.yml. prerun off: the CI wrapper puts this checkout
|
|
# first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario install is unused.
|
|
prerun: false
|
|
provisioner:
|
|
# Merged over the docker driver's own connection vars, for the container hosts only: localhost
|
|
# keeps the controller's Python.
|
|
connection_options:
|
|
# Both molecule images ship it; a fixed path skips interpreter discovery in every playbook run.
|
|
ansible_python_interpreter: /usr/bin/python3
|
|
config_options:
|
|
connection:
|
|
# Pipe each module over stdin: without it every task pays extra docker exec and docker cp
|
|
# calls to make a temp dir, copy the module in and clean up.
|
|
pipelining: true
|
|
defaults:
|
|
# Gather each host's facts once per playbook run, not in every play.
|
|
gathering: smart
|
|
# Per-task timings, to see what a scenario's time goes to; ansible.posix is in the ci image
|
|
# and in requirements.yml, so the controller always has these callbacks.
|
|
callbacks_enabled: ansible.posix.profile_tasks, ansible.posix.timer
|
|
callback_profile_tasks:
|
|
summary_only: true
|
|
task_output_limit: 20
|