From 722185a4240fac07d52e7c5bbf1f08ad171acaa1 Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Tue, 13 Feb 2018 17:47:17 +0300 Subject: [PATCH] Don't check api_interface for 'deployment' group 'deployment' hosts don't need api interface. Previous fix checked if hosts belong global groups like [compute] or [control] which is not correct because uses can create own groups and the check won't work there at all. Here the logic is reversed - we blacklist groups that don't need api_interface. Change-Id: Ibaa94004016ba41a2ae5700c48522e254c6ee239 Closes-Bug: #1732846 --- ansible/roles/prechecks/tasks/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ansible/roles/prechecks/tasks/main.yml b/ansible/roles/prechecks/tasks/main.yml index ae2fbd1808..87ccb8f180 100644 --- a/ansible/roles/prechecks/tasks/main.yml +++ b/ansible/roles/prechecks/tasks/main.yml @@ -1,10 +1,7 @@ --- - include: port_checks.yml when: - - inventory_hostname in groups['control'] or - inventory_hostname in groups['network'] or - inventory_hostname in groups['compute'] or - inventory_hostname in groups['monitoring'] + - inventory_hostname not in groups['deployment'] - include: service_checks.yml