From 563f73026833aa6b831b251777d8e6c1b3ac5e98 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 12 Jan 2018 10:40:40 -0500 Subject: [PATCH] add support for new "BECOME" prompt in Ansible 2.5+ see: https://github.com/ansible/ansible-tower/issues/7850 --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index e2528d197d..71552d329b 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1217,6 +1217,7 @@ class RunJob(BaseTask): for method in PRIVILEGE_ESCALATION_METHODS: d[re.compile(r'%s password.*:\s*?$' % (method[0]), re.M)] = 'become_password' d[re.compile(r'%s password.*:\s*?$' % (method[0].upper()), re.M)] = 'become_password' + d[re.compile(r'BECOME password.*:\s*?$', re.M)] = 'become_password' d[re.compile(r'SSH password:\s*?$', re.M)] = 'ssh_password' d[re.compile(r'Password:\s*?$', re.M)] = 'ssh_password' d[re.compile(r'Vault password:\s*?$', re.M)] = 'vault_password'