Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jackivanov committed Jun 26, 2018
1 parent b62b16a commit 79deeff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ users:

### Advanced users only below this line ###

# If True re-init all existing certificates. (True or False)
easyrsa_reinit_existent: False
# If True re-init all existing certificates. Boolean
keys_clean_all: False

vpn_network: 10.19.48.0/24
vpn_network_ipv6: 'fd9d:bc11:4020::/48'
Expand Down
2 changes: 1 addition & 1 deletion roles/vpn/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ wireguard_network_ipv6:
clients_start: 100
wireguard_vpn_network: "{{ wireguard_network_ipv4['subnet'] }}/{{ wireguard_network_ipv4['prefix'] }}"
wireguard_vpn_network_ipv6: "{{ wireguard_network_ipv6['subnet'] }}/{{ wireguard_network_ipv6['prefix'] }}"
easyrsa_reinit_existent: false
keys_clean_all: false
wireguard_dns_servers: >-
{% if local_dns|default(false)|bool or dns_encryption|default(false)|bool == true %}
{{ local_service_ip }}
Expand Down
2 changes: 1 addition & 1 deletion roles/vpn/tasks/openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
file:
dest: configs/{{ IP_subject_alt_name }}/pki
state: absent
when: easyrsa_reinit_existent|bool == True
when: keys_clean_all|bool == True

- name: Ensure the pki directories exist
file:
Expand Down
2 changes: 1 addition & 1 deletion roles/wireguard/tasks/keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
file:
dest: "/etc/wireguard/private_{{ item }}.lock"
state: absent
when: easyrsa_reinit_existent|bool == True
when: keys_clean_all|bool == True
with_items:
- "{{ users }}"
- "{{ IP_subject_alt_name }}"
Expand Down

0 comments on commit 79deeff

Please sign in to comment.