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:
parent
ae2e55beed
commit
6ebc7b4f6d
|
@ -42,5 +42,5 @@
|
|||
name: "{{ item }}"
|
||||
state: "restarted"
|
||||
pattern: "{{ item }}"
|
||||
with_items: aodh_service_names
|
||||
with_items: "{{ aodh_service_names }}"
|
||||
failed_when: false
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue