Subject: Re: bug#78442: 29.4; RFE: Add Ansible password prompt to comint-password-prompt-regexp

From: Michael Albinus <[email-masked]>
Date: Tue, 03 Jun 2025 16:59:07 +0200

Version: 31.1

Tim Landscheidt <[email-masked]> writes:

Hi Tim,

> Ansible (https://docs.ansible.com/) uses the prompt "BECOME
> password: " when asking for a user's password:
>
> | $ ansible-playbook -DKi ansible/hosts ansible/playbook.yml
> | BECOME password:
>
> (There is one (1) trailing space after the colon.)

Ansible uses different prompts for passwords. See these examples (tested
with ansible-playbook [core 2.18.3]):

--8<---------------cut here---------------start------------->8---
# ansible-playbook --ask-vault-pass playbook.yml
Vault password:

# ansible-playbook --vault-id dev@prompt playbook.yml
Vault password (dev):

# ansible-playbook --ask-pass playbook.yml
SSH password:

# ansible-playbook --ask-become-pass playbook.yml
BECOME password:
--8<---------------cut here---------------end--------------->8---

> It would be nice if comint/shell mode could support this.

I've pushed the password prompts to comint-password-prompt-regexp in the
master branch. Closing the bug.

Best regards, Michael.