add openvpn role
This commit is contained in:
15
roles/openvpn/templates/ccd.j2
Normal file
15
roles/openvpn/templates/ccd.j2
Normal file
@ -0,0 +1,15 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for k, v in item.value.items() %}
|
||||
{% if v is string %}
|
||||
{{ k }} {{ v }}
|
||||
{% elif v is sequence %}
|
||||
{% for vv in v %}
|
||||
{{ k }} {{ vv | quote if k == "push" else vv }}
|
||||
{% endfor %}
|
||||
{% elif v is not defined %}
|
||||
{{ k }}
|
||||
{% else %}
|
||||
{{ k }} {{ v }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
15
roles/openvpn/templates/openvpn.conf.j2
Normal file
15
roles/openvpn/templates/openvpn.conf.j2
Normal file
@ -0,0 +1,15 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for k, v in openvpn_config[instance].items() %}
|
||||
{% if v is string %}
|
||||
{{ k }} {{ v }}
|
||||
{% elif v is sequence %}
|
||||
{% for vv in v %}
|
||||
{{ k }} {{ vv | quote if k == "push" else vv }}
|
||||
{% endfor %}
|
||||
{% elif v is not defined %}
|
||||
{{ k }}
|
||||
{% else %}
|
||||
{{ k }} {{ v }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user