herzogf / homek8s

Kubernetes installer for your datacenter at home.
MIT License
1 stars 2 forks source link

ansible: create playbook to clean dnsmasq dhcp leases #54

Open herzogf opened 4 years ago

herzogf commented 4 years ago

homek8s should provide ansible scripts to clear the dnsmasq dhcp leases completely or for individual nodes only (e.g. needed in local test environment when we don't want to provision the gateway all the time but re-use a running raspberry pi VM).

To clean all leases:

sudo systemctl stop dnsmasq
sudo rm -f /var/lib/misc/dnsmasq.leases
sudo systemctl start dnsmasq

For individual leases there's a package dnsmasq-utils which should do the trick: