add ansible playbook to show dnsmasq leases

This commit is contained in:
Pim Kunis 2023-07-23 17:21:42 +02:00
parent 8af66c53f3
commit 488024a772

10
ansible/show_leases.yml Normal file
View file

@ -0,0 +1,10 @@
---
- hosts: hermes
tasks:
- name: Read dnsmasq leases
command: cat /mnt/data/dnsmasq.leases
register: leases
- name: Print dnsmasq leases
debug:
msg: "{{ leases.stdout_lines }}"