From c93ed6a81f5a844a530cc82af70d7e6096fcd638 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Mon, 5 Dec 2016 17:53:14 +0000 Subject: [PATCH] Do not use bare variables in with_items this is deprecated and seems not already possible in Ansible 2.2 Change-Id: Id389e764b8cb7705dc9a1fcbe825e6829caace24 --- playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml | 2 +- playbooks/roles/bifrost-ironic-install/tasks/install.yml | 2 +- playbooks/roles/bifrost-keystone-install/tasks/install.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml index 3d877a1eb..917c47534 100644 --- a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml +++ b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml @@ -62,7 +62,7 @@ - name: "Install required packages" action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" - with_items: required_packages + with_items: "{{ required_packages }}" - name: "Restart libvirt service" service: name="{{libvirt_service_name}}" state=restarted diff --git a/playbooks/roles/bifrost-ironic-install/tasks/install.yml b/playbooks/roles/bifrost-ironic-install/tasks/install.yml index b46062390..7ac91dbe0 100644 --- a/playbooks/roles/bifrost-ironic-install/tasks/install.yml +++ b/playbooks/roles/bifrost-ironic-install/tasks/install.yml @@ -18,7 +18,7 @@ when: ansible_os_family == 'Debian' - name: "Install packages" action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" - with_items: required_packages + with_items: "{{ required_packages }}" # Step required for Ubuntu 14.10 - name: "Install Ubuntu 14.10 (and later) packages" action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" diff --git a/playbooks/roles/bifrost-keystone-install/tasks/install.yml b/playbooks/roles/bifrost-keystone-install/tasks/install.yml index b3455ad0c..5a8de4f42 100644 --- a/playbooks/roles/bifrost-keystone-install/tasks/install.yml +++ b/playbooks/roles/bifrost-keystone-install/tasks/install.yml @@ -13,7 +13,7 @@ --- - name: "Install packages" action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" - with_items: required_packages + with_items: "{{ required_packages }}" - name: "If VENV is set in the environment, enable installation into venv" set_fact: