You've already forked role_dnsmasq
fix: Merge hosts and auto
This commit is contained in:
@@ -26,12 +26,13 @@
|
||||
become: true
|
||||
notify: Reload dnsmasq.service
|
||||
|
||||
- name: Deploy local host configuration
|
||||
- name: Deploy specific records
|
||||
ansible.builtin.template:
|
||||
src: host.conf.j2
|
||||
dest: /srv/dnsmasq/{{ inventory_hostname }}.conf
|
||||
src: "{{ role_path }}/templates/records_specific.conf.j2"
|
||||
dest: /srv/dnsmasq/specific.conf
|
||||
owner: dnsmasq
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
when: dnsmasq_specifics | length > 0
|
||||
become: true
|
||||
notify: Reload dnsmasq.service
|
||||
|
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# tasks file for security
|
||||
|
||||
- name: Deploy records
|
||||
- name: Deploy records from ansible inventory
|
||||
ansible.builtin.template:
|
||||
src: "{{ role_path }}/templates/auto.conf.j2"
|
||||
src: "{{ role_path }}/templates/records_auto.conf.j2"
|
||||
dest: /srv/dnsmasq/auto-{{ dnsmasq_ansible_group }}.conf
|
||||
owner: dnsmasq
|
||||
group: root
|
||||
|
Reference in New Issue
Block a user