Hi, After upgrading to ansible-2.3.0.0 I hited a regression: the "become_method: su" is unable to proceed (timeout).
The bug is know and a fix has been commited upstream. So just use to while waiting for a new release. Bug: https://github.com/ansible/ansible/issues/23689 Fix: https://github.com/ansible/ansible/pull/23710 Thanks. -- Sebastien Marie Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/ansible/Makefile,v retrieving revision 1.73 diff -u -p -r1.73 Makefile --- Makefile 22 Apr 2017 10:52:09 -0000 1.73 +++ Makefile 27 Apr 2017 07:17:50 -0000 @@ -3,6 +3,7 @@ COMMENT = ssh based config management framework MODPY_EGG_VERSION = 2.3.0.0 +REVISION = 0 DISTNAME = ansible-${MODPY_EGG_VERSION} CATEGORIES = sysutils Index: patches/patch-lib_ansible_plugins_connection___init___py =================================================================== RCS file: patches/patch-lib_ansible_plugins_connection___init___py diff -N patches/patch-lib_ansible_plugins_connection___init___py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-lib_ansible_plugins_connection___init___py 27 Apr 2017 07:17:50 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ +unbreak become_method: su. +https://github.com/ansible/ansible/pull/23710 +--- lib/ansible/plugins/connection/__init__.py.orig Thu Apr 27 09:15:38 2017 ++++ lib/ansible/plugins/connection/__init__.py Thu Apr 27 09:15:30 2017 +@@ -260,6 +260,8 @@ class ConnectionBase(with_metaclass(ABCMeta, object)): + if not b_lines: + return False + return b_lines[-1].strip().endswith(b_prompt) or b_lines[0].strip().endswith(b_prompt) ++ else: ++ return self._play_context.prompt(b_output) + + def check_incorrect_password(self, b_output): + b_incorrect_password = to_bytes(gettext.dgettext(self._play_context.become_method, C.BECOME_ERROR_STRINGS[self._play_context.become_method]))
