From 88bf4075bd711de99d86565487f538aa63a7f973 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 10 Apr 2019 12:07:33 +0100 Subject: [PATCH] Don't install empty package name on old Ubuntu Follow up to https://review.openstack.org/#/c/651136/, which fails on Ubuntu versions prior to 18.04. Change-Id: I74a85dec95ceed7c6eeafb9eb1920c7c30b3e64a Related-Bug: #1813492 --- ansible/roles/baremetal/tasks/install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/baremetal/tasks/install.yml b/ansible/roles/baremetal/tasks/install.yml index 7c0f85cf20..b6def4ea49 100644 --- a/ansible/roles/baremetal/tasks/install.yml +++ b/ansible/roles/baremetal/tasks/install.yml @@ -49,7 +49,9 @@ state: present become: True with_items: "{{ debian_pkg_install }}" - when: ansible_os_family == 'Debian' + when: + - ansible_os_family == 'Debian' + - item != "" register: apt_install_result - name: Install deltarpm packages