From 1b48111b12f507dcce509c24917e27f9c29653b7 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 2 Jun 2015 14:56:32 -0500 Subject: [PATCH] If remote_addr isn't set, set to ipv4_address --- lib/ansible/executor/task_executor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 23cc880bceb..9ba2b6bca51 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -371,6 +371,9 @@ class TaskExecutor: # FIXME: delegate_to calculation should be done here # FIXME: calculation of connection params/auth stuff should be done here + if not self._connection_info.remote_addr: + self._connection_info.remote_addr = self._host.ipv4_address + if self._task.delegate_to is not None: self._compute_delegate(variables)