Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 2015 12:49:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202799] sysutils/ansible: SHEBANG_FILES breaks ansible_python_interpreter and makes it impossible to manage non-freebsd hosts
Message-ID:  <bug-202799-13-dbH94MwBBN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202799-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202799-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=202799

--- Comment #1 from Nikolai Lifanov <lifanov@mail.lifanov.com> ---
The port (correctly) looks for the shebang line to replace with the target
interpreter:

`--> pkg info -l ansible| grep '\.py$'|xargs grep '/usr/bin/python'
/usr/local/lib/python2.7/site-packages/ansible/runner/connection_plugins/ssh.py:
           # we can only use tty when we are not pipelining the modules. piping
data into /usr/bin/python

`--> head -n1
/usr/local/lib/python2.7/site-packages/ansible/modules/core/system/ping.py
#!/usr/local/bin/python

`--> ansible -i /tmp/hosts -m ping all
127.0.0.1 | success >> {
    "changed": false, 
    "ping": "pong"
}

c6.test | success >> {
    "changed": false, 
    "ping": "pong"
}

/tmp/hosts:

[freebsd]
127.0.0.1

[centos]
c6.test

[centos:vars]
ansible_python_interpreter=/usr/bin/python


Can you provide a test case that's broken by the SHEBANG_FILES change please?

-- 
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-202799-13-dbH94MwBBN>