Clean Boolean condition check on exists check

"bool" filter is not required cause exists return Boolean

Change-Id: I5fa53ec1ebba14ebb8ed3d3d75ae4fb0c6666c44
This commit is contained in:
Bertrand Lallau 2017-09-01 09:42:30 +02:00
parent 9a520e0906
commit 41d4d7bcaf

View File

@ -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 }}"