Python is a popular, dynamic programming language available on GNU/Linux platforms. Ansible is written in Python and requires Python on remote host for normal operations.
debops.python Ansible role can be used to manage the Python environment
on a Debian/Ubuntu host. Role supports multiple Python versions installed on
a host at the same time, which is the default practice in Debian.
A special "raw" mode of operation with a separate Ansible playbook can be used to bootstrap Python environment on a host, so that Ansible can then install packages and operate normally.
debops.python - Manage Python environment using Ansible Copyright (C) 2018 Maciej Delmanowski <email@example.com> Copyright (C) 2018 DebOps https://debops.org/ This Ansible role is part of DebOps. DebOps is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation. DebOps is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with DebOps. If not, see https://www.gnu.org/licenses/.