From a080bb1006e1df383e204f4fb44aa337603004d5 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Thu, 25 Oct 2018 16:10:26 +0100 Subject: [PATCH] Allow the deployment group to be optional This small change prevents the deployment group from being mandatory. Change-Id: I5693fbad0d5677ae341121619b6ec2e8738cffb7 --- ansible/roles/prechecks/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/prechecks/tasks/main.yml b/ansible/roles/prechecks/tasks/main.yml index 8614d29e1c..2f0f8684b1 100644 --- a/ansible/roles/prechecks/tasks/main.yml +++ b/ansible/roles/prechecks/tasks/main.yml @@ -1,7 +1,7 @@ --- - include_tasks: port_checks.yml when: - - inventory_hostname not in groups['deployment'] + - inventory_hostname not in groups['deployment']|default([]) - include_tasks: service_checks.yml