Skip to content

Commit

Permalink
Merge pull request #17 from goetzk/dns_server
Browse files Browse the repository at this point in the history
Allow DNS server to be specified
  • Loading branch information
mrlesmithjr authored Jun 18, 2020
2 parents 99886fe + 2672e90 commit 0134d38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
# defaults file for ansible-squid

# Example of DNS server to query
# squid_dns_nameservers: 127.0.0.1

# squid auth parameters
squid_auth_param: []
# - name: basic
Expand Down
4 changes: 4 additions & 0 deletions templates/etc/squid/squid.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{ ansible_managed|comment }}

{% if squid_dns_nameservers is defined %}
dns_nameservers {{ squid_dns_nameservers }}
{% endif %}

{% if squid_auth_param is defined %}
# AUTH_PARAM
{% for item in squid_auth_param %}
Expand Down

0 comments on commit 0134d38

Please sign in to comment.