feat: Create role

This commit is contained in:
2022-10-03 17:20:34 +02:00
committed by pulsar89.5
parent f8ba73f84d
commit 9134f68038
12 changed files with 276 additions and 6 deletions

36
defaults/main.yml Normal file
View File

@@ -0,0 +1,36 @@
---
# defaults file for dnsmasq
# Directory to deploy override conf of systemd-resolved
dnsmasq_resolved_directory: /etc/systemd/resolved.conf.d
# Directory to deploy configuration
dnsmasq_conf_directory: /etc/dnsmasq.d
# Directory to deploy records files
dnsmasq_records_directory: "{{ dnsmasq_conf_directory }}/records"
# Configuration
dnsmasq_interface: "{{ ansible_facts['default_ipv4']['interface'] }}"
dnsmasq_domain: ""
dnsmasq_servers: []
dnsmasq_rev_servers: []
dnsmasq_bogus_priv_enabled: true
dnsmasq_rebind_domains: []
dnsmasq_hosts: []
dnsmasq_host_ips: []
dnsmasq_host_aliases: []
dnsmasq_client_filename: "{{ inventory_hostname }}"
dnsmasq_client_hostname: "{{ inventory_hostname }} {{ inventory_hostname_short }}"
# Ansible group automatically used in records file
dnsmasq_ansible_group: ""
# IPv6 subnet
dnsmasq_ipv6_subnet: ""
# Specific records
dnsmasq_specifics: []