main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. unbound_logfile: "/var/log/unbound.log"
  3. unbound_configuration:
  4. - verbosity: 1
  5. - do-ip4: "yes"
  6. - do-ip6: "no"
  7. - num-threads: 1
  8. - pidfile: "/var/run/unbound.pid"
  9. - logfile: "{{unbound_logfile}}"
  10. unbound_zone_name: "default"
  11. unbound_only_zones: false
  12. unbound_interfaces:
  13. - 127.0.0.1
  14. unbound_access_control:
  15. - 127.0.0.1 allow
  16. unbound_private_address:
  17. - 10.0.0.0/8
  18. - 172.16.0.0/12
  19. - 192.168.0.0/16
  20. - 169.254.0.0/16
  21. - "fd00::/8"
  22. - "fe80::/10"
  23. unbound_domains: {}
  24. unbound_domains_with_reverses: []
  25. unbound_inventory_domain: {}
  26. unbound_local_zone_type: {}
  27. unbound_local_zone: []
  28. unbound_default_local_zone: "static"
  29. unbound_inventory_domain_with_reverse: true
  30. unbound_zones:
  31. - name: "default"
  32. unbound_forward_zone_active : true
  33. unbound_forward_zone:
  34. - 8.8.8.8 #Google DNS 1
  35. - 8.8.4.4 #Google DNS 2
  36. # Package states: installed or latest
  37. unbound_pkg_state: installed
  38. # Service states: started or stopped
  39. unbound_service_state: started
  40. # Service enabled on startup: yes or no
  41. unbound_service_enabled: yes