Properly default remote_user for delegated-to hosts

Fixes #13323
pull/13451/head
James Cammarata 9 years ago
parent b9fbfaf64e
commit 0d0ed35ba4

@ -350,7 +350,7 @@ class PlayContext(Base):
if user_var in delegated_vars: if user_var in delegated_vars:
break break
else: else:
delegated_vars['ansible_user'] = None delegated_vars['ansible_user'] = task.remote_user or self.remote_user
else: else:
delegated_vars = dict() delegated_vars = dict()

Loading…
Cancel
Save