From ebd353e661ed72e88dee87933000b6895807921a Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Sat, 9 Jun 2018 14:43:32 +0000 Subject: [PATCH] fix ansible warning about blazar In Ansible 2.3.0 when statements should not include jinja2 templating delimiters such as {{ }} or {% %} this ps fixes it Change-Id: I33a42eb8184b77e78332caa2a255e0f251fdf9fc --- ansible/roles/blazar/tasks/bootstrap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/blazar/tasks/bootstrap.yml b/ansible/roles/blazar/tasks/bootstrap.yml index b6fef2aac0..89e32de338 100644 --- a/ansible/roles/blazar/tasks/bootstrap.yml +++ b/ansible/roles/blazar/tasks/bootstrap.yml @@ -46,7 +46,7 @@ changed_when: blazar_host_aggregate | success failed_when: - blazar_host_aggregate.rc != 0 - - "{{ 'already' not in blazar_host_aggregate.stderr }}" + - blazar_host_aggregate.stderr.find('already') == -1 run_once: True delegate_to: "{{ groups['blazar-api'][0] }}"