summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/inventory.py')
-rw-r--r--test/lib/ansible_test/_internal/inventory.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/inventory.py b/test/lib/ansible_test/_internal/inventory.py
index f5a245ec89..7e930040c0 100644
--- a/test/lib/ansible_test/_internal/inventory.py
+++ b/test/lib/ansible_test/_internal/inventory.py
@@ -25,6 +25,10 @@ from .host_profiles import (
WindowsRemoteProfile,
)
+from .ssh import (
+ ssh_options_to_str,
+)
+
def create_controller_inventory(args, path, controller_host): # type: (EnvironmentConfig, str, ControllerHostProfile) -> None
"""Create and return inventory for use in controller-only integration tests."""
@@ -149,6 +153,7 @@ def create_posix_inventory(args, path, target_hosts, needs_ssh=False): # type:
ansible_port=ssh.settings.port,
ansible_user=ssh.settings.user,
ansible_ssh_private_key_file=ssh.settings.identity_file,
+ ansible_ssh_extra_args=ssh_options_to_str(ssh.settings.options),
) # type: t.Dict[str, t.Optional[t.Union[str, int]]]
if ssh.become: