mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
mobileconfig implemented
This commit is contained in:
parent
371b20a2ce
commit
b8cbbcf205
6 changed files with 6 additions and 8 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
*.retry
|
||||
users/*.mobileconfig
|
||||
users/*.p12
|
||||
users/*.crt
|
||||
configs/*.mobileconfig
|
||||
configs/*.p12
|
||||
configs/*.crt
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
qwe11
|
|
@ -1 +0,0 @@
|
|||
qwe
|
BIN
users/qwe
BIN
users/qwe
Binary file not shown.
6
vpn.yml
6
vpn.yml
|
@ -128,15 +128,15 @@
|
|||
- "{{ PayloadContent.results }}"
|
||||
|
||||
- name: Fetch users P12
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3//pki/private/{{ item }}.p12 dest=users/{{ server_name }}_{{ item }}.p12 flat=yes
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3//pki/private/{{ item }}.p12 dest=configs/{{ server_name }}_{{ item }}.p12 flat=yes
|
||||
with_items: "{{ users }}"
|
||||
|
||||
- name: Fetch users mobileconfig
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3//pki/private/{{ item }}.mobileconfig dest=users/{{ server_name }}_{{ item }}.mobileconfig flat=yes
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3//pki/private/{{ item }}.mobileconfig dest=configs/{{ server_name }}_{{ item }}.mobileconfig flat=yes
|
||||
with_items: "{{ users }}"
|
||||
|
||||
- name: Fetch server CA certificate
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3/pki/ca.crt dest=users/{{ server_name }}_ca.crt flat=yes
|
||||
fetch: src=/{{ easyrsa_dir }}/easyrsa3/pki/ca.crt dest=configs/{{ server_name }}_ca.crt flat=yes
|
||||
|
||||
handlers:
|
||||
- name: restart strongswan
|
||||
|
|
Loading…
Add table
Reference in a new issue