mirror of
https://github.com/trailofbits/algo.git
synced 2026-09-22 09:34:58 +02:00
mobileconfig implemented
This commit is contained in:
+3
-3
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user