make dhcp lease file removal more ansible like

changes "command: rm ..." to use file module.

Change-Id: I427d59df53d3671d0d39356ddea1805efcbef538
This commit is contained in:
Chris Krelle 2016-03-18 09:52:05 -07:00
parent 6fc3df7c21
commit d090e9f536

View File

@ -24,7 +24,7 @@
with_sequence: start=1 end={{ test_vm_num_nodes | default('5') }}
ignore_errors: yes
- name: Remove pre-existing leases file
command: rm /var/lib/misc/dnsmasq.leases
file: path=/var/lib/misc/dnsmasq.leases state=absent
- hosts: localhost
connection: local
name: "Executes install, enrollment, and testing in one playbook"