From c6578417182d2b2f09e15353a3c6b2ddbb53ead7 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Tue, 3 Apr 2018 19:02:58 -0700 Subject: [PATCH] namespace unbound vars --- group_vars/all | 9 +++++---- roles/unbound/templates/unbound.conf.j2 | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/group_vars/all b/group_vars/all index 0fb7aa3..55c4eca 100644 --- a/group_vars/all +++ b/group_vars/all @@ -137,10 +137,11 @@ tor: localtime: run_on: trusted -nameservers: - - 8.8.8.8 # Google - - 209.244.0.3 # Level 3 - - 74.82.42.42 # Hurricane Electric +unbound: + nameservers: + - 8.8.8.8 # Google + - 209.244.0.3 # Level 3 + - 74.82.42.42 # Hurricane Electric bluetooth: disable: False diff --git a/roles/unbound/templates/unbound.conf.j2 b/roles/unbound/templates/unbound.conf.j2 index 0e2fb18..647c4b4 100644 --- a/roles/unbound/templates/unbound.conf.j2 +++ b/roles/unbound/templates/unbound.conf.j2 @@ -17,11 +17,11 @@ server: private-address: fd00::/8 private-address: fe80::/10 -{% if nameservers %} +{% if unbound.nameservers %} # Define DNS servers to forward queries to. forward-zone: name: "." - {% for nameserver in nameservers %} + {% for nameserver in unbound.nameservers %} forward-addr: {{ nameserver }} {% endfor %} {% endif %}