Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2016 04:59:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 206591] sysutils/ansible
Message-ID:  <bug-206591-13-UdPYeWFll8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206591-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206591-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<ws-leeb.ad.nyingma.org> ESTABLISH CONNECTION FOR USER: None on PORT 22 TO
ws-leeb.ad.nyingma.org
<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
<ws-leeb.ad.nyingma.org> ESTABLISH CONNECTION FOR USER: None on PORT 22 TO
ws-leeb.ad.nyingma.org
<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 )" )
<ws-leeb.ad.nyingma.org> PUT /tmp/tmpFV1eMg TO
/home/niadmin/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493/pkgng
<ws-leeb.ad.nyingma.org> 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206591-13-UdPYeWFll8>