Address Ansible bare variable usage

When executing the role with Ansible 2.1, the following
deprecation warning is issued in the output for some tasks.

[DEPRECATION WARNING]: Using bare variables is deprecated.

This patch addresses the tasks to fix the behaviour appropriately.

Change-Id: I93e37123d39eecf0d82499f563a5f341609e6caa
This commit is contained in:
Travis Truman 2016-06-15 10:04:37 -04:00
parent 1b39b85f83
commit 480dc16dcc
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
url: "{{ item.url }}"
dest: "{{ tempest_image_dir }}"
sha256sum: "{{ item.sha256 }}"
with_items: tempest_images
with_items: "{{ tempest_images }}"
when: tempest_service_available_glance | bool
tags:
- tempest-config
@ -77,7 +77,7 @@
src: "{{ tempest_image_dir }}/{{ item }}"
dest: "{{ tempest_image_dir }}"
copy: "no"
with_items: tempest_archives.stdout
with_items: "{{ tempest_archives.stdout | default([]) }}"
when: tempest_service_available_glance | bool
tags:
- tempest-config