Address Ansible bare variable usage

When executing this playbook with Ansible 2.1, the following
deprecation warning is issued in the output.

[DEPRECATION WARNING]: Using bare variables is deprecated.

This patch wraps those variables as Ansible 2.1 requires.

Change-Id: Id328150b47acaa93393fa30826364f100099998f
This commit is contained in:
Jimmy McCrory 2016-07-19 16:55:37 -07:00 committed by Jesse Pretorius (odyssey4me)
parent 30dacdf8af
commit ae8bc708e7

View File

@ -67,7 +67,7 @@
{% else %}
echo "{{ item.key }} volume_group not defined"
{% endif %}
with_dict: cinder_backends|default({})
with_dict: "{{ cinder_backends | default({}) }}"
when:
- physical_host != container_name
- cinder_backend_lvm_inuse | bool