add ansible playbook to show dnsmasq leases
This commit is contained in:
parent
8af66c53f3
commit
488024a772
1 changed files with 10 additions and 0 deletions
10
ansible/show_leases.yml
Normal file
10
ansible/show_leases.yml
Normal 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 }}"
|
Reference in a new issue