From d090e9f536e50ee280a9c390340923cf0dbcba6d Mon Sep 17 00:00:00 2001 From: Chris Krelle Date: Fri, 18 Mar 2016 09:52:05 -0700 Subject: [PATCH] make dhcp lease file removal more ansible like changes "command: rm ..." to use file module. Change-Id: I427d59df53d3671d0d39356ddea1805efcbef538 --- playbooks/test-bifrost-dhcp.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/test-bifrost-dhcp.yaml b/playbooks/test-bifrost-dhcp.yaml index 0af1698bc..d62961eda 100644 --- a/playbooks/test-bifrost-dhcp.yaml +++ b/playbooks/test-bifrost-dhcp.yaml @@ -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"