add vault file

This commit is contained in:
2025-03-22 17:00:55 -05:00
parent 7bca8fb949
commit b64a2b5b50
5 changed files with 20 additions and 7 deletions

View File

@@ -16,9 +16,11 @@
- name: Add host reservation to dnsmasq
ansible.builtin.lineinfile:
path: /etc/dnsmasq.d/hosts.conf
line: "dhcp-host={{ mac_address }},{{ ip_address }},{{ hostname }}"
regexp: "^dhcp-host={{ mac_address }}"
line: "dhcp-host={{ mac_address }},{{ ip_address }} #{{ hostname }}"
state: present
become: true
- name: Restart dnsmasq service
ansible.builtin.service:
name: dnsmasq