]> git.eshelyaron.com Git - emacs.git/commitdiff
Add ansible password prompts to `comint-password-prompt-regexp'
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 3 Jun 2025 14:56:52 +0000 (16:56 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:12 +0000 (22:00 +0200)
* lisp/comint.el (comint-password-prompt-regexp):
* test/lisp/comint-tests.el (comint-testsuite-password-strings):
Add ansible password prompts. (Bug#78442)

(cherry picked from commit f60ad8d1e0bf3352af8f30bc4d4de25030447d3a)

lisp/comint.el
test/lisp/comint-tests.el

index ffecdefba4b3cb908f9f7d56f3804fadd30c3133..7bb90d76f0800ee05729cf804a51f5dfa10492f3 100644 (file)
@@ -404,6 +404,8 @@ This variable is buffer-local."
    (regexp-opt
     '("Enter" "enter" "Enter same" "enter same" "Enter the" "enter the"
       "Current"
+      ;; Ansible.  (Bug#78442)
+      "Vault" "SSH" "BECOME"
       "Enter Auth" "enter auth" "Old" "old" "New" "new" "login"
       "Kerberos" "CVS" "UNIX" " SMB" "LDAP" "PEM" "SUDO"
       "[sudo]" "doas" "Repeat" "Bad" "Retype" "Verify")
@@ -418,6 +420,8 @@ This variable is buffer-local."
    ;; The ccrypt encryption dialog doesn't end with a colon, so
    ;; treat it specially.
    "\\|^Enter encryption key: (repeat) *\\'"
+   ;; Ansible.  The vault-id syntax is a guess.  (Bug#78442)
+   "\\|^Vault password ([^@-][^@]*): \\'"
    ;; Default openssh format: "user@host's password:".
    "\\|^[^@ \t\n]+@[^@ \t\n]+'s password: *\\'"
    ;; openssh-8.6p1 format: "(user@host) Password:".
index ccec3864a8ba7af6105827620428cd0bdb8ac3f2..82b74a5f00053e11b1345cfc2f9a26927fa91db9 100644 (file)
     "Enter encryption key: (repeat) " ; ccrypt
     "Enter Auth Password:" ; OpenVPN (Bug#35724)
     "Verify password: "    ; zip -e zipfile.zip ... (Bug#47209)
+    "Vault password: "     ; ansible-playbook --ask-vault-pass ... (Bug#78442)
+    "Vault password (dev): " ; ansible-playbook --vault-id dev@prompt ... (Bug#78442)
+    "SSH password: "       ; ansible-playbook --ask-pass playbook.yml ... (Bug#78442)
+    "BECOME password: "    ; ansible-playbook --ask-become-pass ... (Bug#78442)
     "Mot de Passe :" ; localized (Bug#29729)
     "Passwort:") ; localized
   "List of strings that should match `comint-password-prompt-regexp'.")