[Bug 206591] sysutils/ansible

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 25 04:59:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206591

--- Comment #4 from leeb at 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=True, in_data=None,
-            executable=None, encoding_errors='replace'):
+    def _low_level_execute_command(self, cmd, sudoable=True, in_data=None,
executable=C.DEFAULT_EXECUTABLE, encoding_errors='replace'):
         '''
         This is the function which executes the low level shell command, which
         may be commands to create/remove directories for temporary files, or
to

I now get this result:

$ env ANSIBLE_KEEP_REMOTE_FILES=1 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! => {"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 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-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=0    changed=0    unreachable=1    failed=0   

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! => {
    "changed": false, 
    "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 )\" ), exited
with result 2: Syntax error: \"(\" unexpected\r\n", 
    "unreachable": true

Reverting to no patch

$ env ANSIBLE_KEEP_REMOTE_FILES=1 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=en_US.UTF-8
LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/local/bin/python
/home/niadmin/.ansible/tmp/ansible-tmp-1453697875.05-54043981240493/pkgng'"'"'"'
ok: [ws-leeb.ad.nyingma.org] => (item=[u'editors/nano', u'net/x11vnc',
u'x11/xscreensaver']) => {"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=1    changed=0    unreachable=0    failed=0   

$ ansible -m ping ws-leeb.ad.nyingma.org                                       
                                                             
ws-leeb.ad.nyingma.org | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list