Merge "Treat ::1 as localhost in addition to 127.0.0.1"

This commit is contained in:
Zuul 2018-06-19 09:23:09 +00:00 committed by Gerrit Code Review
commit 09df5f33f2
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ class CallbackModule(default.CallbackModule):
def _process_result_for_localhost(self, result, is_task=True):
result_dict = dict(result._result)
localhost_names = ('localhost', '127.0.0.1')
localhost_names = ('localhost', '127.0.0.1', '::1')
is_localhost = False
task_host = result._host.get_name()
delegated_vars = result_dict.get('_ansible_delegated_vars', None)