Add BooleanField for persistence and subnet visibility and dynimically create configuration with server and client addresses attempt 4
diff --git a/xos/observers/vpn/steps/sync_vpntenant.yaml b/xos/observers/vpn/steps/sync_vpntenant.yaml
index 4d35c90..b2037d5 100644
--- a/xos/observers/vpn/steps/sync_vpntenant.yaml
+++ b/xos/observers/vpn/steps/sync_vpntenant.yaml
@@ -8,15 +8,18 @@
- name: install openvpn
apt: name=openvpn state=present update_cache=yes
+ - name: stop openvpn
+ shell: killall openvpn
+
- name: erase key
- shell: rm static.key
+ shell: rm -f static.key
- name: write key
shell: echo {{ '{{' }} item {{ '}}' }} >> static.key
with_items: "{{ server_key }}"
- name: erase config
- shell: rm server.conf
+ shell: rm -f server.conf
- name: write config
shell: