Skip to content

Commit

Permalink
Revert "Add example /usr/bin/env python as Python interpreter (#280)" (
Browse files Browse the repository at this point in the history
…#1629)

This reverts commit 07c5009.
  • Loading branch information
s-hertel authored Jun 21, 2024
1 parent 91a9b48 commit c8403c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ auto_silent
You can still set ``ansible_python_interpreter`` to a specific path at any
variable level (for example, in host_vars, in vars files, in playbooks, and so on).
Setting a specific path completely disables automatic interpreter discovery; Ansible always uses the path specified.

.. seealso:: :ref:`python_3_support` for ``ansible_python_interpreter`` usage examples.
8 changes: 0 additions & 8 deletions docs/docsite/rst/reference_appendices/python_3_support.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _python_3_support:

================
Python 3 Support
================
Expand Down Expand Up @@ -70,12 +68,6 @@ Using Python 3 on the managed machines with commands and playbooks
$ ansible localhost-py3 -m ping
$ ansible-playbook sample-playbook.yml
* To use the first Python found on ``PATH`` or if the Python interpreter path is not known in advance, you can use ``/usr/bin/env python`` such as:

.. code-block:: shell
ansible_python_interpreter="/usr/bin/env python"
Note that you can also use the `-e` command line option to manually
set the python interpreter when you run a command. This can be useful if you want to test whether
Expand Down

0 comments on commit c8403c7

Please sign in to comment.