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: I29969fba8fe4197bdff2d74194ac5714e22202a8
This commit is contained in:
Travis Truman 2016-06-15 12:18:53 -04:00
parent ae2e55beed
commit 6ebc7b4f6d
4 changed files with 6 additions and 6 deletions

View File

@ -42,5 +42,5 @@
name: "{{ item }}"
state: "restarted"
pattern: "{{ item }}"
with_items: aodh_service_names
with_items: "{{ aodh_service_names }}"
failed_when: false

View File

@ -72,7 +72,7 @@
until: install_packages|success
retries: 5
delay: 2
with_items: aodh_requires_pip_packages
with_items: "{{ aodh_requires_pip_packages }}"
tags:
- aodh-install
- aodh-pip-packages
@ -189,7 +189,7 @@
until: install_packages|success
retries: 5
delay: 2
with_items: aodh_pip_packages
with_items: "{{ aodh_pip_packages }}"
when:
- aodh_venv_enabled | bool
- aodh_get_venv | failed or aodh_developer_mode | bool
@ -207,7 +207,7 @@
until: install_packages|success
retries: 5
delay: 2
with_items: aodh_pip_packages
with_items: "{{ aodh_pip_packages }}"
when:
- not aodh_developer_mode | bool
- not aodh_venv_enabled | bool

View File

@ -38,7 +38,7 @@
until: install_packages|success
retries: 5
delay: 2
with_items: aodh_apt_packages
with_items: "{{ aodh_apt_packages }}"
tags:
- aodh-install
- aodh-apt-packages

View File

@ -17,7 +17,7 @@
fail:
msg: "Please set the {{ item }} variable prior to applying this role."
when: (item is undefined) or (item is none)
with_items: aodh_required_secrets
with_items: "{{ aodh_required_secrets }}"
tags:
- always