diff --git a/lib/ansible/playbook/play_context.py b/lib/ansible/playbook/play_context.py index 716e7c1932..ec749264e5 100644 --- a/lib/ansible/playbook/play_context.py +++ b/lib/ansible/playbook/play_context.py @@ -545,7 +545,7 @@ class PlayContext(Base): elif self.become_method == 'doas': - prompt = 'Password:' + prompt = 'doas (%s@' % self.remote_user exe = self.become_exe or 'doas' if not self.become_pass: