diff --git a/lib/molecule/provisioner/ansible.py b/lib/molecule/provisioner/ansible.py index ee50b04e46..4d89e5a073 100644 --- a/lib/molecule/provisioner/ansible.py +++ b/lib/molecule/provisioner/ansible.py @@ -386,7 +386,7 @@ def default_config_options(self): "retry_files_enabled": False, "host_key_checking": False, "nocows": 1, - "interpreter_python": "auto", + "interpreter_python": "auto_silent", }, "ssh_connection": { "scp_if_ssh": True, diff --git a/lib/molecule/test/unit/provisioner/test_ansible.py b/lib/molecule/test/unit/provisioner/test_ansible.py index 2f882e081f..2ce332dc99 100644 --- a/lib/molecule/test/unit/provisioner/test_ansible.py +++ b/lib/molecule/test/unit/provisioner/test_ansible.py @@ -100,7 +100,8 @@ def test_default_config_options_property(_instance): "display_failed_stderr": True, "forks": 50, "host_key_checking": False, - "interpreter_python": "auto", + # https://docs.ansible.com/ansible/devel/reference_appendices/interpreter_discovery.html + "interpreter_python": "auto_silent", "nocows": 1, "retry_files_enabled": False, }, @@ -146,7 +147,7 @@ def test_config_options_property(_instance): "foo": "bar", "forks": 50, "host_key_checking": False, - "interpreter_python": "auto", + "interpreter_python": "auto_silent", "nocows": 1, "retry_files_enabled": False, },