From 53cd0bdd29e087140d303ce23eac6e4eabfcc94d Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Tue, 10 Dec 2019 15:05:18 +0100 Subject: [PATCH] docs: Prefer python3 on OpenBSD (#65447) --- docs/docsite/rst/user_guide/intro_bsd.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docsite/rst/user_guide/intro_bsd.rst b/docs/docsite/rst/user_guide/intro_bsd.rst index 106acd536a3..212e5e6c98d 100644 --- a/docs/docsite/rst/user_guide/intro_bsd.rst +++ b/docs/docsite/rst/user_guide/intro_bsd.rst @@ -33,11 +33,11 @@ On your control machine you can execute the following for most versions of FreeB ansible -m raw -a "pkg install -y python27" mybsdhost1 -Or for most versions of OpenBSD: +Or for OpenBSD: .. code-block:: bash - ansible -m raw -a "pkg_add -z python-2.7" + ansible -m raw -a "pkg_add python%3.7" Once this is done you can now use other Ansible modules apart from the ``raw`` module. @@ -56,7 +56,7 @@ To support a variety of Unix/Linux operating systems and distributions, Ansible [freebsd:vars] ansible_python_interpreter=/usr/local/bin/python2.7 [openbsd:vars] - ansible_python_interpreter=/usr/local/bin/python2.7 + ansible_python_interpreter=/usr/local/bin/python3.7 If you use additional plugins beyond those bundled with Ansible, you can set similar variables for ``bash``, ``perl`` or ``ruby``, depending on how the plugin is written. For example: