diff --git a/zuul/ansible/callback/zuul_stream.py b/zuul/ansible/callback/zuul_stream.py index 6d27f1563c..c6cc7ab4ac 100644 --- a/zuul/ansible/callback/zuul_stream.py +++ b/zuul/ansible/callback/zuul_stream.py @@ -172,6 +172,9 @@ class CallbackModule(default.CallbackModule): ip = play_vars[host].get( 'ansible_host', play_vars[host].get( 'ansible_inventory_host')) + if ip in ('localhost', '127.0.0.1'): + # Don't try to stream from localhost + continue streamer = threading.Thread( target=self._read_log, args=( host, ip, log_id, task_name, hosts))