-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathtest.yml
47 lines (39 loc) · 1003 Bytes
/
test.yml
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
---
- hosts: all
become: true
vars:
dnsmasq_domain_needed: true
dnsmasq_expand_hosts: true
dnsmasq_bogus_priv: true
dnsmasq_domain: 'example.lan'
dnsmasq_dhcp_ranges:
- start_addr: '192.168.6.150'
end_addr: '192.168.6.253'
lease_time: '8h'
dnsmasq_dhcp_hosts:
- name: 'alpha'
mac: '11:22:33:44:55:66'
ip: '192.168.6.10'
- name: 'bravo'
mac: 'aa:bb:cc:dd:ee:ff'
ip: '192.168.6.11'
dnsmasq_option_router: '192.168.6.254'
dnsmasq_upstream_servers:
- 8.8.8.8
- 8.8.4.4
dnsmasq_srv_hosts:
- name: _ldap._tcp.example.lan
target: 'charlie.example.lan'
port: 389
pre_tasks:
- name: Add entry to /etc/hosts
lineinfile:
dest: /etc/hosts
line: "{{ item }}"
with_items:
- "192.168.6.10 alpha"
- "192.168.6.11 bravo"
- "192.168.6.12 charlie"
- "192.168.6.66 ns dhcp"
roles:
- role_under_test