aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/playbooks
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-07-08 14:04:20 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-07-16 11:19:26 -0700
commit7e85528a2c9c6669aa0857d8b9bfaa1e698c2fbc (patch)
tree242cbe6b05bf8de67a07449cc0382c1f1d8f1241 /kud/deployment_infra/playbooks
parent78ea22d85af1c2d20dc94453948deedf640385a9 (diff)
Update KUD to python3
Issue-ID: MULTICLOUD-1375 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: I0433a55ef2ac9caba976a267fa9e1f41d5353248
Diffstat (limited to 'kud/deployment_infra/playbooks')
-rw-r--r--kud/deployment_infra/playbooks/preconfigure-kubespray.yml13
1 files changed, 5 insertions, 8 deletions
diff --git a/kud/deployment_infra/playbooks/preconfigure-kubespray.yml b/kud/deployment_infra/playbooks/preconfigure-kubespray.yml
index 78e7eda6..2eeca749 100644
--- a/kud/deployment_infra/playbooks/preconfigure-kubespray.yml
+++ b/kud/deployment_infra/playbooks/preconfigure-kubespray.yml
@@ -1,19 +1,16 @@
---
-# The mitogen module used in kubespray requires python2 on the nodes.
# On some distributions (i.e. Ubuntu 18.04), the default version of
-# python is python3.
+# python is python3 and there is no /usr/bin/python executable.
#
-# When python2 is not present a failure message similar to "bash:
+# 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 python2
+- name: Install python3 as preferred alternative
hosts: k8s-cluster
strategy: linear
tasks:
- - name: Install python2
- package:
- name: python
- state: present
+ - name: Install python3 as preferred alternative
+ command: update-alternatives --install /usr/bin/python python /usr/bin/python3 1