define local_dns if dns tag used (#531)

This commit is contained in:
Jack Ivanov 2017-05-08 22:10:59 +02:00 committed by Dan Guido
parent 0031d2809e
commit 627b7d5d9b
2 changed files with 7 additions and 1 deletions

2
algo
View file

@ -40,7 +40,7 @@ read -p "
Do you want to install a DNS resolver on this VPN server, to block ads while surfing?
[y/N]: " -r dns_enabled
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 "
Do you want each user to have their own account for SSH tunneling?

View file

@ -35,3 +35,9 @@
- name: Define the commonName
set_fact:
IP_subject_alt_name: "{{ IP_subject_alt_name }}"
- name: The DNS tag is defined
set_fact:
local_dns: Y
tags:
- dns