From ae6c1982ec2101547b6744cf157aae4ce5bbb49e Mon Sep 17 00:00:00 2001 From: Bjoern Teipel Date: Fri, 24 May 2019 10:24:36 -0500 Subject: [PATCH] Prevent autoremoval of packages on bare metal When deploying OSA on bare metal (no container tech), the os keystone role interferes with os horizon as the package apache2 is automatically uninstalled. Change-Id: Ifec88251712a99ad7afbb51e386adf15bc4841eb Closes-Bug: #1830397 --- tasks/keystone_install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index 97b18a45..5390d92e 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -94,6 +94,8 @@ newuse: "{{ (ansible_pkg_mgr == 'portage') | ternary('yes', omit) }}" changed_use: "{{ (ansible_pkg_mgr == 'portage') | ternary('yes', omit) }}" noreplace: "{{ (ansible_pkg_mgr == 'portage') | ternary('yes', omit) }}" + when: "(is_metal is undefined) or + not (is_metal | bool)" - name: Install distro packages package: