From 1b3fdfd834576e6a0c732bb8e58324ce29017ec1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 27 Apr 2016 09:40:39 +0100 Subject: [PATCH] Removed useless "when" With | default({}) in our with items, the task will be skipped if the the variable is undefined. No need for a when. Change-Id: Ie896084646a7393b92a8f9b3372510eb754dd35d --- tasks/container_create.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/container_create.yml b/tasks/container_create.yml index 2bcc0f1..b657cdc 100644 --- a/tasks/container_create.yml +++ b/tasks/container_create.yml @@ -212,7 +212,6 @@ echo '{{ item.key }}={{ item.value }}' | tee -a /etc/environment fi with_dict: "{{ global_environment_variables | default({}) }}" - when: global_environment_variables is defined delegate_to: "{{ physical_host }}" tags: - lxc-container-proxy