You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The set_fact calculating command_directive runs on localhost and loops other the molecule platforms. So the var gets overwritten on each pass and only the last value for the last platform gets recorded and used for all platforms when creating the containers in the next task
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Desired Behavior
Recent implementation of
command_override
for docker containers in #1771 is buggy.Suppose I have more than one platform:
When I run
molecule create
with the above config, I'm expecting to see 2 running containers:Actual Behaviour
Both containers are running the default command.
This is related to the new task introduced in #1771 (https://github.com/decentral1se/molecule/blob/d5255917c11d10ed161f6ee346e645222f22af69/molecule/provisioner/ansible/playbooks/docker/create.yml#L58).
The
set_fact
calculatingcommand_directive
runs on localhost and loops other the molecule platforms. So the var gets overwritten on each pass and only the last value for the last platform gets recorded and used for all platforms when creating the containers in the next taskMy 2 cent towards the solution:
The text was updated successfully, but these errors were encountered: