From owner-freebsd-ports-bugs@freebsd.org Mon Jan 25 04:59:42 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F862A31A57 for ; Mon, 25 Jan 2016 04:59:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83582DE3 for ; Mon, 25 Jan 2016 04:59:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0P4xgWZ048828 for ; Mon, 25 Jan 2016 04:59:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206591] sysutils/ansible Date: Mon, 25 Jan 2016 04:59:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: leeb@ratnaling.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 04:59:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206591 --- Comment #4 from leeb@ratnaling.org --- No, it just breaks differently. Using this: --- lib/ansible/plugins/action/__init__.py.orig 2016-01-14 22:33:27 UTC +++ lib/ansible/plugins/action/__init__.py @@ -475,8 +475,7 @@ class ActionBase(with_metaclass(ABCMeta, display.debug("done with _execute_module (%s, %s)" % (module_name, module_args)) return data - def _low_level_execute_command(self, cmd, sudoable=3DTrue, in_data=3DN= one, - executable=3DNone, encoding_errors=3D'replace'): + def _low_level_execute_command(self, cmd, sudoable=3DTrue, in_data=3DN= one, executable=3DC.DEFAULT_EXECUTABLE, encoding_errors=3D'replace'): ''' This is the function which executes the low level shell command, w= hich may be commands to create/remove directories for temporary files, = or to I now get this result: $ env ANSIBLE_KEEP_REMOTE_FILES=3D1 ansible-playbook packages.yml -vvv Using /usr/local/etc/ansible/ansible.cfg as config file 1 plays in packages.yml PLAY *************************************************************************** TASK [install packages] ******************************************************** task path: /usr/local/home/niadmin/packages.yml:7 ESTABLISH CONNECTION FOR USER: None on PORT 22 TO ws-leeb.ad.nyingma.org EXEC /bin/sh -c ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1453696957.15-50158191509323 )" && echo "$( = echo $HOME/.ansible/tmp/ansible-tmp-1453696957.15-50158191509323 )" ) fatal: [ws-leeb.ad.nyingma.org]: UNREACHABLE! =3D> {"changed": false, "msg"= : "All items completed", "results": [{"item": ["editors/nano", "net/x11vnc", "x11/xscreensaver"], "msg": "ERROR! Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permiss= ions on the remote directory. Consider changing the remote temp path in ansible.= cfg to a path rooted in \"/tmp\". Failed command was: ( umask 22 && mkdir -p \"= $( echo $HOME/.ansible/tmp/ansible-tmp-1453696957.15-50158191509323 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1453696957.15-50158191509323 )\" ), exited with result 2: Syntax error: \"(\" unexpected\r\n", "unreachable": true}]} PLAY RECAP ********************************************************************* ws-leeb.ad.nyingma.org : ok=3D0 changed=3D0 unreachable=3D1 fa= iled=3D0=20=20=20 ping module now fails too (it still ran with full patch): $ ansible -m ping ws-leeb.ad.nyingma.org ws-leeb.ad.nyingma.org | UNREACHABLE! =3D> { "changed": false,=20 "msg": "ERROR! Authentication or permission failure. In some cases, you= may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 22 && mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1453697577.22-162119065183458 )\" && echo \"= $( echo $HOME/.ansible/tmp/ansible-tmp-1453697577.22-162119065183458 )\" ), ex= ited with result 2: Syntax error: \"(\" unexpected\r\n",=20 "unreachable": true Reverting to no patch $ env ANSIBLE_KEEP_REMOTE_FILES=3D1 ansible-playbook packages.yml -vvv Using /usr/local/etc/ansible/ansible.cfg as config file 1 plays in packages.yml PLAY *************************************************************************** TASK [install packages] ******************************************************** task path: /usr/local/home/niadmin/packages.yml:7 ESTABLISH CONNECTION FOR USER: None on PORT 22 TO ws-leeb.ad.nyingma.org EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493 )" && echo "$( = echo $HOME/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493 )" ) PUT /tmp/tmpFV1eMg TO /home/niadmin/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493/pkgng EXEC /bin/sh -c 'su root -c "/bin/sh -c '"'"'echo BECOME-SUCCESS-sofeidbqqkhxdqzgofrolhdrukueqtlx; LANG=3Den_US.UTF-8 LC_ALL=3Den_US.UTF-8 LC_MESSAGES=3Den_US.UTF-8 /usr/local/bin/python /home/niadmin/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493/pkgng'"= '"'"' ok: [ws-leeb.ad.nyingma.org] =3D> (item=3D[u'editors/nano', u'net/x11vnc', u'x11/xscreensaver']) =3D> {"changed": false, "invocation": {"module_args": {"annotation": "", "cached": false, "name": ["editors/nano", "net/x11vnc", "x11/xscreensaver"], "pkgsite": "", "rootdir": "", "state": "present"}, "module_name": "pkgng"}, "item": ["editors/nano", "net/x11vnc", "x11/xscreensaver"], "msg": "package(s) already present"} PLAY RECAP ********************************************************************* ws-leeb.ad.nyingma.org : ok=3D1 changed=3D0 unreachable=3D0 fa= iled=3D0=20=20=20 $ ansible -m ping ws-leeb.ad.nyingma.org=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 ws-leeb.ad.nyingma.org | SUCCESS =3D> { "changed": false,=20 "ping": "pong" } --=20 You are receiving this mail because: You are the assignee for the bug.=