diff --git a/src/molecule/command/init/scenario.py b/src/molecule/command/init/scenario.py index 6ac651d632..6a0d871e02 100644 --- a/src/molecule/command/init/scenario.py +++ b/src/molecule/command/init/scenario.py @@ -22,6 +22,7 @@ import json import logging import os +import sys import click @@ -95,7 +96,7 @@ def execute(self, action_args=None): # As ansible fails to find a terminal when run by molecule, we force # it to use colors. env["ANSIBLE_FORCE_COLOR"] = "1" - env["ANSIBLE_PYTHON_INTERPRETER"] = "auto_silent" + env["ANSIBLE_PYTHON_INTERPRETER"] = sys.executable util.run_command(cmd, env=env, check=True) msg = f"Initialized scenario in {scenario_directory} successfully."