-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathupgrade.yml
45 lines (37 loc) · 1.26 KB
/
upgrade.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
---
- name: burp2 servers
become: yes
become_method: sudo
# environment: "{{ proxy_env }}" # example to use behind proxy
hosts: burp2_servers
# Define the list of servers and add tags so you will be able to filter the call to a tag:
tasks:
- name: uninstall old burp package
package:
name: [ 'burp', 'burp-server', 'burp-client', 'burp-server', 'burp-core' ]
state: absent
- name: remove old burp server service
file:
path: /etc/init.d/burp-server
state: absent
- name: remove old burp restore service
file:
path: /etc/init.d/burp-restore
state: absent
- name: remove old default burp server service
file:
path: /etc/default/burp
state: absent
- name: remove old default burp restore service
file:
path: /etc/default/burp-restore
state: absent
# add this task if you have burp-server service running with supervisor and want to migrate to systemd (now default)
- name: supervisor | start burp server
supervisorctl:
name: burp-server
state: stopped
- name: supervisor | Ensure "{{ supervisoretc_dir }}" dir exists
file:
path: "/etc/supervisor.d/burp-server.conf"
state: absent