mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
define local_dns if dns tag used (#533)
This commit is contained in:
parent
d10a86b331
commit
97369c303a
2 changed files with 6 additions and 1 deletions
2
algo
2
algo
|
@ -40,7 +40,7 @@ read -p "
|
||||||
Do you want to install a DNS resolver on this VPN server, to block ads while surfing?
|
Do you want to install a DNS resolver on this VPN server, to block ads while surfing?
|
||||||
[y/N]: " -r dns_enabled
|
[y/N]: " -r dns_enabled
|
||||||
dns_enabled=${dns_enabled:-n}
|
dns_enabled=${dns_enabled:-n}
|
||||||
if [[ "$dns_enabled" =~ ^(y|Y)$ ]]; then ROLES+=" dns"; EXTRA_VARS+=" local_dns=Y"; fi
|
if [[ "$dns_enabled" =~ ^(y|Y)$ ]]; then ROLES+=" dns"; fi
|
||||||
|
|
||||||
read -p "
|
read -p "
|
||||||
Do you want each user to have their own account for SSH tunneling?
|
Do you want each user to have their own account for SSH tunneling?
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
|
- name: The DNS tag is defined
|
||||||
|
set_fact:
|
||||||
|
local_dns: Y
|
||||||
|
|
||||||
- name: Dnsmasq installed
|
- name: Dnsmasq installed
|
||||||
package: name=dnsmasq
|
package: name=dnsmasq
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue