revert(molecule): connect with the docker CLI again
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
This commit is contained in:
1 parent
cdc5937e45
commit
0961dfdff4
3 files changed
+6
-9
No files matched your search
@@ -4,16 +4,14 @@
|
||||
prerun: false
|
||||
provisioner:
|
||||
# Merged over the docker driver's own connection vars, for the container hosts only: localhost
|
||||
# keeps the controller's connection and Python.
|
||||
# keeps the controller's Python.
|
||||
connection_options:
|
||||
# Talk to the daemon over its socket, instead of starting the docker CLI for every task.
|
||||
ansible_connection: community.docker.docker_api
|
||||
# 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 exec and copy calls to the
|
||||
# daemon to make a temp dir, copy the module in and clean up.
|
||||
# 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.
|
||||
|
||||
Reference in new issue
Block a user