401520e274
As mentioned in the README, this adds the dynamic configuration for unbound on hosts. If there is a ipv6 route, it will set forwarding to ipv6 servers, otherwise use ipv4. This is ported from the configure_mirror.sh script. We add a basic test to integration tests Change-Id: I70b41e45f3d53b191742533c2f3b6c0b6e6c2339
14 lines
334 B
YAML
14 lines
334 B
YAML
- name: Test the configure-unbound role
|
|
hosts: all
|
|
roles:
|
|
- role: configure-unbound
|
|
post_tasks:
|
|
- name: Check for /etc/unbound/forwarding.conf
|
|
stat: path=/etc/unbound/forwarding.conf
|
|
register: f
|
|
- name: Check forwarding file
|
|
assert:
|
|
that:
|
|
- f.stat.exists
|
|
- f.stat.isreg
|