[CORD-2874]
Fix deprecation warnings raised by Ansible 2.5

Change-Id: Icb607d267af2771b046b46399ce5f0d182f629ab
diff --git a/roles/glance-images/tasks/main.yml b/roles/glance-images/tasks/main.yml
index 29fceb0..7bd4a0e 100644
--- a/roles/glance-images/tasks/main.yml
+++ b/roles/glance-images/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
 # Copyright 2017-present Open Networking Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
----
 # glance-images/tasks/main.yml
 
 - name: Make images directory
@@ -35,7 +33,7 @@
     dest: "{{ image_dir }}/{{ item.name }}.qcow2"
   with_items: "{{ xos_images }}"
   register: glance_vm_result
-  until: glance_vm_result|success
+  until: glance_vm_result is success
   retries: 5
   delay: 10