Python 3 Support — Ansible Documentation
docs.ansible.com › python_3_supportDec 21, 2021 · Ansible will automatically detect and use Python 3 on many platforms that ship with it. To explicitly configure a Python 3 interpreter, set the ansible_python_interpreter inventory variable at a group or host level to the location of a Python 3 interpreter, such as /usr/bin/python3. The default interpreter path may also be set in ansible.cfg.
Ansible and Python 3 — Ansible Documentation
docs.ansible.com › developing_python_3Dec 21, 2021 · Ansible-2.3 was released in April of 2017 and was the last Ansible release to support Python 2.4 on the module-side. Developing Ansible code that supports Python 2 and Python 3 The best place to start learning about writing code that supports both Python 2 and Python 3 is Lennart Regebro’s book: Porting to Python 3 .
Python 3 Support — Ansible Documentation
docs.ansible.com › ansible › 2Dec 01, 2020 · Testing Python 3 module support¶. Set the ansible_python_interpreter configuration option to /usr/bin/python3. The ansible_python_interpreter configuration option is usually set per-host as inventory variable associated with a host or set of hosts. See the inventory documentation for more information. Run your command or playbook.: