mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-26 19:14:01 +02:00
AndroidVPNClientProfiles #240
This commit is contained in:
parent
7b468fae79
commit
aca036142f
2 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
11
roles/vpn/templates/sswan.j2
Normal file
11
roles/vpn/templates/sswan.j2
Normal 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 }}"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue