From 7e85528a2c9c6669aa0857d8b9bfaa1e698c2fbc Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Thu, 8 Jul 2021 14:04:20 -0700 Subject: Update KUD to python3 Issue-ID: MULTICLOUD-1375 Signed-off-by: Todd Malsbary Change-Id: I0433a55ef2ac9caba976a267fa9e1f41d5353248 --- kud/deployment_infra/playbooks/preconfigure-kubespray.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'kud/deployment_infra') 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 -- cgit 1.2.3-korg