For When You Can't Have The Real Thing
[ start | index | login ]
start > ansible > 2.2 > Use Python v3 Instead Of v2

Use Python v3 Instead Of v2

Created by dave. Last edited by dave, 5 years and 29 days ago. Viewed 1,121 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(2019-02-19)

Problem

Out of the box, modern OS's don't include Python v2 which is what Ansible wants to use.

Solution

Use Python v3 instead.

In the hosts file entry for the given host, include the ansible_python_interpreter flag to switch versions.

[db]
123.123.123.123 ansible_python_interpreter=/usr/bin/python3

(>>Source)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt