Fix deprecation warnings in Ansible 2.5 for state 'present'.

This commit is contained in:
Jeff Geerling 2018-04-04 13:49:38 -05:00
parent 32476114c1
commit 5e25122d12
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,6 +1,6 @@
---
- name: Ensure NFS utilities are installed.
package: name=nfs-utils state=installed
package: name=nfs-utils state=present
- name: Ensure rpcbind is running.
service: name=rpcbind state=started enabled=yes