Do not use bare variables in with_items

this is deprecated and seems not already possible in Ansible 2.2

Change-Id: Id389e764b8cb7705dc9a1fcbe825e6829caace24
This commit is contained in:
Pavlo Shchelokovskyy 2016-12-05 17:53:14 +00:00
parent ee38716d16
commit c93ed6a81f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"

View File

@ -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: