From 6cf60d23854122f5c1eeb7221ad69a1210260039 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 20 May 2019 16:29:26 +0200 Subject: [PATCH] there is no easy_install in Debian 'buster' Change-Id: I49588f9ceef60472428d835b95d26a36eaf2b47e --- ansible/roles/baremetal/defaults/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/roles/baremetal/defaults/main.yml b/ansible/roles/baremetal/defaults/main.yml index 4627672f51..6349b74041 100644 --- a/ansible/roles/baremetal/defaults/main.yml +++ b/ansible/roles/baremetal/defaults/main.yml @@ -71,8 +71,11 @@ docker_runtime_directory: "" # Ubuntu 18+ does not have easy_install available due to # https://bugs.launchpad.net/ubuntu/+source/python-setuptools/+bug/1774419. easy_install_available: >- - {{ ansible_distribution != 'Ubuntu' or - ansible_distribution_major_version is version(18, 'lt') }} + {{ not (ansible_distribution == 'Ubuntu' and + ansible_distribution_major_version is version(18, 'ge')) + and + not (ansible_distribution == 'Debian' and + ansible_distribution_major_version is version(10, 'ge')) }} debian_pkg_install: - "{{ docker_apt_package }}"