Pass the list of packages to apt directly

The current method results in a deprecation warning on the latest
version of Ansible.
This commit is contained in:
Joel Noyce Barnham 2018-07-15 11:08:41 +01:00
parent f2778aa96f
commit 48114e97f7

View file

@ -1,6 +1,7 @@
---
- name: Ensure NFS utilities are installed.
apt: "name={{ item }} state=present"
with_items:
- nfs-common
- nfs-kernel-server
apt:
name:
- nfs-common
- nfs-kernel-server
state: present