diff options
Diffstat (limited to 'kud/deployment_infra/playbooks/preconfigure-kubespray.yml')
-rw-r--r-- | kud/deployment_infra/playbooks/preconfigure-kubespray.yml | 13 |
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 |