diff --git a/src/molecule/driver/delegated.py b/src/molecule/driver/delegated.py index 4f7379a88d..42c3b4e8fb 100644 --- a/src/molecule/driver/delegated.py +++ b/src/molecule/driver/delegated.py @@ -187,7 +187,7 @@ def ansible_connection_options(self, instance_name): conn_dict["ansible_user"] = d.get("user") conn_dict["ansible_host"] = d.get("address") conn_dict["ansible_port"] = d.get("port") - if d.get("ansible_connection", None): + if d.get("connection", None): conn_dict["ansible_connection"] = d.get("connection", "smart") if d.get("become_method", False): conn_dict["ansible_become_method"] = d.get("become_method")