From 232142494529a2c74459b2a503f6c1052f0bbf90 Mon Sep 17 00:00:00 2001 From: Mike Carden Date: Wed, 22 Jun 2016 11:58:25 +1000 Subject: [PATCH] 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: I54e7c0e85ce5145a3138103eb9c281c281410520 --- playbooks/utility-install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/utility-install.yml b/playbooks/utility-install.yml index 07ec74db3e..667927fac6 100644 --- a/playbooks/utility-install.yml +++ b/playbooks/utility-install.yml @@ -96,7 +96,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: utility_apt_packages | default([]) + with_items: "{{ utility_apt_packages | default([]) }}" tags: - utility-apt-packages - name: Install pip packages @@ -108,7 +108,7 @@ until: install_packages|success retries: 5 delay: 2 - with_items: utility_pip_packages + with_items: "{{ utility_pip_packages }}" tags: - utility-pip-packages - name: Distribute private ssh key