ports/187175: [maintainer] sysutils/ansible adjust pkg-message
Nikolai Lifanov
lifanov at mail.lifanov.com
Sat Mar 1 11:40:01 UTC 2014
>Number: 187175
>Category: ports
>Synopsis: [maintainer] sysutils/ansible adjust pkg-message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Mar 01 11:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Nikolai Lifanov
>Release: FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD mail.lifanov.com 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
There is some confusion among sysutils/ansible users about shebangs set to the correct Python interpreter for FreeBSD.
I believe that this is the right thing to do within the ports framework and the only way this will work if the user
elects to set default Python version to 3.x (which is a valid thing to do), but please add a note to pkg-message
about setting up Ansible to control other systems.
>How-To-Repeat:
Apply this patch.
>Fix:
--- patch.txt begins here ---
Index: sysutils/ansible/files/pkg-message.in
===================================================================
--- sysutils/ansible/files/pkg-message.in (revision 346614)
+++ sysutils/ansible/files/pkg-message.in (working copy)
@@ -6,3 +6,17 @@
%%EXAMPLESDIR%%/hosts
%%EXAMPLESDIR%%/ansible.cfg
+To use Ansible to control systems other than FreeBSD,
+set the Python interpreter in the host database for
+that system. Example:
+
+ [freebsd]
+ host1
+ host2
+
+ [centos]
+ host3
+ host4
+
+ [centos:var]
+ ansible_python_interpreter=/usr/bin/python
--- patch.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list