AndroidVPNClientProfiles #240

This commit is contained in:
Jack Ivanov 2017-02-17 00:30:21 +03:00
parent 7b468fae79
commit aca036142f
2 changed files with 23 additions and 0 deletions

View file

@ -259,6 +259,18 @@
- "{{ PayloadContent.results }}"
no_log: True
- name: Build the strongswan app android config
local_action:
module: template
src: sswan.j2
dest: configs/{{ IP_subject_alt_name }}/{{ item.0 }}.sswan
mode: 0600
become: no
with_together:
- "{{ users }}"
- "{{ PayloadContent.results }}"
no_log: True
- name: Build the client ipsec config file
local_action:
module: template

View file

@ -0,0 +1,11 @@
{
"uuid": "{{ 600000 | random | to_uuid }}",
"name": "Algo VPN {{ IP_subject_alt_name }}",
"type": "ikev2-cert",
"remote": {
"addr": "{{ IP_subject_alt_name }}"
},
"local": {
"p12": "{{ item.1.stdout }}"
}
}