ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 #
# !!! This file is managed by Ansible !!!
#

{% if services.dnsmasq.local_service is defined and services.dnsmasq.local_service is true  %}
local-service
{% endif %}

{% if services.dnsmasq.no_resolv is defined and services.dnsmasq.no_resolv is true  %}
no-resolv
{% endif %}

{% if services.dnsmasq.no_hosts is defined and services.dnsmasq.no_hosts is true  %}
no-hosts
{% endif %}

{% if services.dnsmasq.domain_needed is defined and services.dnsmasq.domain_needed is true  %}
domain-needed
{% endif %}

{% if services.dnsmasq.bogus_priv is defined and services.dnsmasq.bogus_priv is true  %}
bogus-priv
{% endif %}

{% if services.dnsmasq.expand_hosts is defined and services.dnsmasq.expand_hosts is true  %}
expand-hosts
{% endif %}

{% if services.dnsmasq.addn_hosts is defined %}
addn-hosts={{services.dnsmasq.addn_hosts}}
{% endif %}

{% if services.dnsmasq.read_ethers is defined and services.dnsmasq.read_ethers is true  %}
read-ethers
{% endif %}

{% if services.dnsmasq.enable_ra is defined and services.dnsmasq.enable_ra is true  %}
enable-ra
{% endif %}

{% if services.dnsmasq.quiet_ra is defined and services.dnsmasq.quiet_ra is true  %}
quiet-ra
{% endif %}

{% for dns_server in services.dnsmasq.dns_servers %}
server={{ dns_server }}
{% endfor %}



{% if services.dnsmasq.domain is defined %}
# allow /etc/hosts and dhcp lookups for local domains
local=/{{ services.dnsmasq.domain }}/
domain={{ services.dnsmasq.domain }}
{% endif %}

{% if services.dnsmasq.auth_ttl is defined %}
auth-ttl={{ services.dnsmasq.auth_ttl }}
{% endif %}

{% if services.dnsmasq.auth_server is defined %}
auth-server={{ services.dnsmasq.auth_server }}
{% endif %}

{% if services.dnsmasq.auth_zones is defined %}
{% for auth_zone in services.dnsmasq.auth_zones %}
auth-zone={{ auth_zone }}
{% endfor %}
{% endif %}

{% if services.dnsmasq.addresses is defined %}
{% for address in services.dnsmasq.addresses %}
host-record={{ address }}
{% endfor %}
{% endif %}

{% if services.dnsmasq.local_addresses is defined %}
{% for address in services.dnsmasq.local_addresses %}
address={{ address }}
{% endfor %}
{% endif %}



{% if services.dnsmasq.dhcp is defined %}

{% if services.dnsmasq.dhcp.authoritative is defined and services.dnsmasq.dhcp.authoritative is true  %}
dhcp-authoritative
{% endif %}

{% if services.dnsmasq.dhcp.rapid_commit is defined and services.dnsmasq.dhcp.rapid_commit is true  %}
dhcp-rapid-commit
{% endif %}

{% if services.dnsmasq.dhcp.sequential_ip is defined and services.dnsmasq.dhcp.sequential_ip is true  %}
dhcp-sequential-ip
{% endif %}

{% if services.dnsmasq.dhcp.ranges is defined %}
{% for dhcp_range in services.dnsmasq.dhcp.ranges %}
dhcp-range={{ dhcp_range }}
{% endfor %}
{% endif %}

{% if services.dnsmasq.dhcp.options is defined %}
{% for dhcp_option in services.dnsmasq.dhcp.options %}
dhcp-option={{ dhcp_option}}
{% endfor %}
{% endif %}

{% if services.dnsmasq.dhcp.hosts is defined %}
{% for dhcp_host in services.dnsmasq.dhcp.hosts %}
dhcp-host={{ dhcp_host }}
{% endfor %}
{% endif %}

{% endif %}

{% if services.dnsmasq.extraConfig is defined %}
{{ services.dnsmasq.extraConfig }}
{% endif %}