Skip to content

Commit

Permalink
Merge pull request #12 from aleprovencio/main
Browse files Browse the repository at this point in the history
Add REV_SERVER CIDR, TARGET and DOMAIN configs
  • Loading branch information
r-pufky authored May 27, 2023
2 parents b76a9c1 + 93e5d63 commit 2faba3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ pihole_dns_fqdn_required: 'false'
pihole_dns_bogus_priv: 'false'
pihole_dnssec: 'false'
pihole_rev_server: 'false'
pihole_rev_server_cidr: "{{ ansible_default_ipv4.address | ansible.utils.ipaddr('network/prefix') }}"
pihole_rev_server_target: '{{ ansible_default_ipv4.gateway }}'
pihole_rev_server_domain: 'lan'
pihole_pihole_interface: '{{ ansible_default_ipv4.interface }}'
pihole_ipv4_address: "{{ (ansible_default_ipv4.address + '/' + ansible_default_ipv4.netmask) | ansible.utils.ipaddr('address/prefix') }}"
pihole_ipv6_address: ''
Expand Down
3 changes: 3 additions & 0 deletions templates/setupVars.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ WEBTHEME={{ pihole_webtheme }}
WEBPASSWORD={{ pihole_webpassword | hash('sha256') | hash('sha256') }}
DNSSEC={{ pihole_dnssec | bool | lower }}
REV_SERVER={{ pihole_rev_server | bool | lower }}
REV_SERVER_CIDR={{ pihole_rev_server_cidr }}
REV_SERVER_TARGET={{ pihole_rev_server_target }}
REV_SERVER_DOMAIN={{ pihole_rev_server_domain }}
BLOCKING_ENABLED={{ pihole_blocking_enabled | bool | lower }}
IPV4_ADDRESS={{ pihole_ipv4_address }}
IPV6_ADDRESS={{ pihole_ipv6_address }}
Expand Down

0 comments on commit 2faba3f

Please sign in to comment.