-
Notifications
You must be signed in to change notification settings - Fork 9
/
4_config_burp.yml
98 lines (88 loc) · 3.03 KB
/
4_config_burp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
# file tasks/config_burp.yml
# Ensure to not create /etc/bur/CA manually because it will break auto generated certificate
- name: config_burp | create etc directories
file:
path: "{{ item }}"
state: directory
owner: "{{ burp_sv_server_user }}"
group: "{{ burp_sv_server_user }}"
mode: '0750'
with_items:
- '{{ burp_server_etc }}/autoupgrade'
# - '{{ burp_client_ca_csr_dir }}' # already in 10_local_client
- "{{ burp_server_clientconfdir }}/profiles"
- "{{ burp_server_clientconfdir }}/incexc"
- name: config_burp | copy etc file
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ burp_sv_server_user }}"
mode: '0640'
with_items:
- { src: "build/CA.cnf.j2", dest: "{{ burp_server_ca_conf }}" }
- name: config_burp | create burp folders
file:
path: "{{ item }}"
state: directory
owner: "{{ burp_sv_server_user }}"
group: "{{ burp_sv_server_user }}"
mode: '0750'
with_items:
- "{{ burp_home }}"
- "{{ burp_server_data }}"
- "{{ burp_logs }}"
- name: config_burp | remove burp example files
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ burp_server_clientconfdir }}/testclient"
- name: config_burp | configure burp server
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ burp_sv_server_user }}"
with_items:
- { src: "burp-server.conf.j2", dest: "{{ burp_server_etc }}/burp-server.conf"}
notify:
- restart burp server
- restart burp server systemd
- name: config_burp | configure profiles configured in profiles_templates
template:
src: profiles/profile_template.j2
dest: "{{ burp_server_clientconfdir }}/incexc/{{ item.name }}"
owner: "{{ burp_sv_server_user }}"
group: "{{ burp_sv_server_user }}"
mode: '0640'
with_items: "{{ profiles_templates }}"
- name: config_burp | copy clients configuration files
unarchive:
src: "files/incexc.tar.gz"
# source is compressed incexc dir, in destination it will create incexc or create new files in incexc dir
dest: "{{ burp_server_clientconfdir }}/"
unsafe_writes: yes
copy: yes
creates: "{{ burp_server_clientconfdir }}/incexc/audio_exclusions"
owner: "{{ burp_sv_server_user }}"
group: "{{ burp_sv_server_user }}"
mode: '0750'
- name: config_burp | configure profile lnxsrv to create new client
template:
src: profiles/lnxsrv.j2
dest: "{{ burp_server_clientconfdir }}/profiles/lnxsrv"
owner: "{{ burp_sv_server_user }}"
- name: config_burp | configure profile win6x to create new client
template:
src: profiles/win6x.j2
dest: "{{ burp_server_clientconfdir }}/profiles/win6x"
owner: "{{ burp_sv_server_user }}"
# This task ensures we can create restore file for server initiated restores
- name: config_burp | create restore client's dir in spool dir
file:
path: "{{ burp_server_data }}/{{ item }}"
state: directory
owner: "{{ burp_sv_server_user }}"
group: "{{ burp_sv_server_user }}"
mode: '0640'
with_items: "{{ burp_restore_super_clients }}"