File tree 5 files changed +10
-27
lines changed
5 files changed +10
-27
lines changed Original file line number Diff line number Diff line change 20
20
- tmux
21
21
- tree
22
22
- ufw
23
- - unbound
24
23
- vim
25
24
- xclip
26
25
loop_control :
Original file line number Diff line number Diff line change 1
1
---
2
- # - name: Set _unbound user as owner for /var/unbound/etc folder
3
- # file:
4
- # path: /var/unbound/etc
5
- # owner: _unbound
6
- # group: "wheel"
7
- # mode: "0755"
8
-
9
2
- name : deploy unbound.conf template configuration file
10
3
template :
11
4
src : unbound.conf.j2
12
- dest : " /etc/unbound/"
5
+ dest : " /etc/unbound/unbound.conf.d/unbound.conf "
13
6
mode : " 0644"
14
7
owner : " root"
15
8
group : " root"
Original file line number Diff line number Diff line change 1
1
# /etc/unbound/unbound.conf
2
- #
3
- # Unbound configuration file for Debian.
4
- #
5
- # See the unbound.conf(5) man page.
6
- #
7
- # See /usr/share/doc/unbound/examples/unbound.conf for a commented
8
- # reference config file.
9
- #
10
- # The following line includes additional configuration files from the
11
- # /etc/unbound/unbound.conf.d directory.
12
- include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
13
-
14
-
15
2
16
3
server:
17
4
verbosity: 1
@@ -27,7 +14,7 @@ server:
27
14
do-udp: yes
28
15
do-tcp: yes
29
16
directory: "/etc/unbound"
30
- #chroot: "/var /unbound"
17
+ #chroot: "/etc /unbound"
31
18
interface: {{ host_ip }}
32
19
interface: 127.0.0.1
33
20
Original file line number Diff line number Diff line change 1
1
# replace network interface as required.
2
2
# within vim - :3,5s/re0/em0/g OR :3,5s/em0/re0/g
3
- host_ip : " {{ ansible_em0['ipv4'][0].address }}"
4
- network_addr : " {{ ansible_em0['ipv4'][0].network }}"
5
- subnet_mask : " {{ ansible_em0['ipv4'][0].netmask }}"
3
+ host_ip : " {{ ansible_default_ipv4['address'] }}"
4
+ network_addr : " {{ ansible_default_ipv4['network'] }}"
5
+ subnet_mask : " {{ ansible_default_ipv4['netmask'] }}"
Original file line number Diff line number Diff line change 39
39
40
40
- name : ansible_default_ipv4[address]
41
41
debug :
42
- msg : " {{ ansible_default_ipv4['address'] }}"
42
+ msg : |
43
+ Primary Interface: {{ ansible_default_ipv4.interface }}
44
+ IP Address: {{ ansible_default_ipv4.address }}
45
+ Subnet: {{ ansible_default_ipv4.network }}
46
+ Netmask: {{ ansible_default_ipv4.netmask }}
43
47
44
48
- name : ansible_env['USER']
45
49
debug :
You can’t perform that action at this time.
0 commit comments