From 126a7c1bd89befc7799830fdbbc023c491b7fac0 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Thu, 21 Apr 2016 15:20:52 -0400 Subject: [PATCH] Ansible 2.x - Address deprecation warning of bare variables Ansible 2.2 will not allow "bare" variable references in with_* loops. See https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated for details. Change-Id: Ib83ee2b2c5f97f672d1070f78a6170ff8ca7ae7b --- tasks/horizon_install.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index b980883d..522123e9 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -82,7 +82,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: horizon_apt_packages + with_items: "{{ horizon_apt_packages }}" tags: - horizon-install - horizon-apt-packages @@ -96,8 +96,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: - - "{{ horizon_requires_pip_packages }}" + with_items: "{{ horizon_requires_pip_packages }}" tags: - horizon-pip-packages @@ -213,7 +212,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: horizon_pip_packages + with_items: "{{ horizon_pip_packages }}" when: - horizon_venv_enabled | bool - horizon_get_venv | failed or horizon_developer_mode | bool @@ -230,7 +229,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: horizon_pip_packages + with_items: "{{ horizon_pip_packages }}" when: - not horizon_developer_mode | bool - not horizon_venv_enabled | bool