From 41d4d7bcaf864553ee9d66e5ab1a979a75e50922 Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Fri, 1 Sep 2017 09:42:30 +0200 Subject: [PATCH] Clean Boolean condition check on exists check "bool" filter is not required cause exists return Boolean Change-Id: I5fa53ec1ebba14ebb8ed3d3d75ae4fb0c6666c44 --- ansible/roles/neutron/tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/neutron/tasks/config.yml b/ansible/roles/neutron/tasks/config.yml index 0919d2defd..766eb471ff 100644 --- a/ansible/roles/neutron/tasks/config.yml +++ b/ansible/roles/neutron/tasks/config.yml @@ -309,7 +309,7 @@ dest: "{{ node_config_directory }}/{{ service_name }}/policy.json" register: policy_jsons when: - - neutron_policy.stat.exists | bool + - neutron_policy.stat.exists - item.value.enabled | bool - item.value.host_in_groups | bool with_dict: "{{ neutron_services }}"