Correct ansible conditional jinja2 warning

This removes the braces around conditional variables which results in a
warning.

>  [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.condition }}

Change-Id: I598cb74e18892cfcfa1fbe3d05cb2a48568f23ac
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-10-03 23:47:26 -05:00
parent 66af063713
commit 45e424e630
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
1 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,8 @@
endpoint_type: admin
verify: "{{ not keystone_service_adminuri_insecure }}"
register: add_service
when: "{{ item.condition }}"
when:
- item.condition
until: add_service is success
retries: 5
delay: 10
@ -83,7 +84,8 @@
endpoint_type: admin
verify: "{{ not keystone_service_adminuri_insecure }}"
register: add_service
when: "{{ item.condition }}"
when:
- item.condition
until: add_service is success
retries: 5
delay: 10