add root priv

This commit is contained in:
2025-03-22 15:03:29 -05:00
parent 310469293c
commit 7bca8fb949

View File

@@ -3,12 +3,14 @@
ansible.builtin.apt:
name: dnsmasq
state: present
become: true
when: ansible_os_family == "Debian"
- name: Ensure dnsmasq is installed
ansible.builtin.dnf:
name: dnsmasq
state: present
become: true
when: ansible_os_family == "RedHat"
- name: Add host reservation to dnsmasq
@@ -16,8 +18,9 @@
path: /etc/dnsmasq.d/hosts.conf
line: "dhcp-host={{ mac_address }},{{ ip_address }},{{ hostname }}"
state: present
become: true
- name: Restart dnsmasq service
ansible.builtin.service:
name: dnsmasq
state: restarted
become: true