blob: 2eeca749bcf673852d5876f73e907af862b6d6fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
---
# On some distributions (i.e. Ubuntu 18.04), the default version of
# python is python3 and there is no /usr/bin/python executable.
#
# When not present a failure message similar to "bash:
# /usr/bin/python: No such file or directory" will be reported.
#
# Note the use of "strategy: linear" below to temporarily bypass
# mitogen.
#
- name: Install python3 as preferred alternative
hosts: k8s-cluster
strategy: linear
tasks:
- name: Install python3 as preferred alternative
command: update-alternatives --install /usr/bin/python python /usr/bin/python3 1
|