add dnsmasq role

This commit is contained in:
Sergey Malyuk
2025-12-11 10:27:01 +03:00
parent 2902ab08b3
commit d8118cdd8c
19 changed files with 235 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
- name: Verify
hosts: all
gather_facts: false
any_errors_fatal: true
pre_tasks:
- name: "Install a package providing the `dig` tool"
ansible.builtin.apt:
name: dnsutils
state: present
tasks:
- name: "Test the output of the `dig` command"
changed_when: false
register: dig
failed_when: 'dig.stdout != "127.0.0.1"'
ansible.builtin.command:
cmd: "dig @127.0.0.1 -p 5353 hub.adm.vpn +short"