-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.yml
62 lines (54 loc) · 1.7 KB
/
uninstall.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
---
- hosts: all
remote_user: "{{ username }}"
gather_facts: false
become: yes
tasks:
- name: stop supervisor
service: name=supervisor state=stopped
ignore_errors: true
- name: stop supervisord
service: name=supervisor state=stopped
ignore_errors: true
- name: remove supervisord
apt: name=supervisor state=absent
ignore_errors: true
- name: remove vsftpd
apt: name=vsftpd state=absent
ignore_errors: true
- name: stop docker engine
service: name=docker state=stopped
ignore_errors: true
- name: remove docker engine
apt: name=docker-engine state=absent
ignore_errors: true
- name: erase supervisor scripts
file: path={{ item }} state=absent
with_items:
- /etc/supervisor/conf.d/marathon_script.conf
- /etc/supervisor/conf.d/mesos_master_script.conf
- /etc/supervisor/conf.d/mesos_agent_script.conf
- /etc/supervisor/conf.d/zookeeper_script.conf
- "{{ install_dir }}/{{ mesos_dir }}"
- "{{ install_dir }}/{{ zookeeper_dir }}"
- "{{ install_dir }}/{{ marathon_dir }}"
- /var/log/mesos.err.log
- /var/log/mesos.out.log
- /var/log/zookeeper.err.log
- /var/log/zookeeper.out.log
- /var/log/marathon.*
- /var/log/mesos
- /var/log/supervisor
- "{{ build_dir }}"
- /etc/mesos-slave
- /var/lib/mesos
ignore_errors: true
- name: delete remainder of files
shell: rm -rf *
args:
chdir: "{{ home }}"
ignore_errors: true
- name: delete zookeeper data
become_user: root
command: rm -rf /var/lib/zookeeper
ignore_errors: true