initial commit

This commit is contained in:
pyrschtjag committed 2026-10-02 21:34:01 +04:00
commit 13eace9ce9
219 files changed
+6918

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
---
- name: install dnsmasq
ansible.builtin.apt:
name: dnsmasq
state: latest
update_cache: true
notify: restart dnsmasq
- name: ensure dnsmasq.d directory exists
ansible.builtin.file:
path: /etc/dnsmasq.d
state: directory
mode: "0755"
- name: deploy dnsmasq hook
ansible.builtin.copy:
dest: /etc/dhcp/dhclient-enter-hooks.d/nodnsupdate
content: |
make_resolv_conf() {
:
}
owner: root
group: root
mode: "0755"
notify: restart dnsmasq
- name: deploy dnsmasq rule
ansible.builtin.template:
src: "{{ item }}"
dest: "/etc/dnsmasq.d/{{ item | basename | regex_replace('\\.j2$', '') }}"
mode: "0644"
loop: "{{ query('ansible.builtin.fileglob', role_path + '/templates/' + inventory_hostname + '/*.conf.j2') }}"
notify: restart dnsmasq