From e46d1ebe201f6181d858dcce43d4b54bee983b39 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 20 Nov 2019 16:28:09 +0200 Subject: [PATCH] Don't install python2 for Debian Change-Id: Ia82c89e08a7fe647b247078610d4a1775a7b2599 --- playbooks/openstack-hosts-setup.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/openstack-hosts-setup.yml b/playbooks/openstack-hosts-setup.yml index e09f140ccb..ef04e9a708 100644 --- a/playbooks/openstack-hosts-setup.yml +++ b/playbooks/openstack-hosts-setup.yml @@ -28,7 +28,10 @@ register: result raw: | if which apt-get >/dev/null && ! which python >/dev/null ; then - apt-get -y install python + if ! which python3 >/dev/null ; then + apt-get -y install python3 + fi + update-alternatives --install /usr/bin/python python /usr/bin/python3 10 exit 2 else exit 0