GNU bug report logs - #78442
29.4; RFE: Add Ansible password prompt to comint-password-prompt-regexp

Previous Next

Package: emacs;

Reported by: Tim Landscheidt <tim <at> tim-landscheidt.de>

Date: Thu, 15 May 2025 11:26:01 UTC

Severity: normal

Found in version 29.4

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

To reply to this bug, email your comments to 78442 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78442; Package emacs. (Thu, 15 May 2025 11:26:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Landscheidt <tim <at> tim-landscheidt.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 15 May 2025 11:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tim Landscheidt <tim <at> tim-landscheidt.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.4; RFE: Add Ansible password prompt to
 comint-password-prompt-regexp
Date: Thu, 15 May 2025 11:24:57 +0000
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.)

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




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Tue, 03 Jun 2025 16:44:02 GMT) Full text and rfc822 format available.

Notification sent to Tim Landscheidt <tim <at> tim-landscheidt.de>:
bug acknowledged by developer. (Tue, 03 Jun 2025 16:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 78442-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tim Landscheidt <tim <at> tim-landscheidt.de>
Cc: 78442-done <at> debbugs.gnu.org
Subject: Re: bug#78442: 29.4; RFE: Add Ansible password prompt to
 comint-password-prompt-regexp
Date: Tue, 03 Jun 2025 16:59:07 +0200
Version: 31.1

Tim Landscheidt <tim <at> tim-landscheidt.de> 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 <at> 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.




This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.