-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove_jboss.yml
executable file
·45 lines (43 loc) · 1.01 KB
/
remove_jboss.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: Remove Jboss Components and configuration
hosts: jboss-server-group
gather_facts: false
tasks:
- name: Stop jboss service
service:
name: jboss
state: stopped
ignore_errors: yes
- name: Remove Java 1.7 and some basic dependencies
yum:
name: "{{ item }}"
state: absent
with_items:
- unzip
- java-1.7.0-openjdk
- libselinux-python
- libsemanage-python
- name: Clean artifacts
file:
state: absent
path: /opt/jboss-as-7.1.1.Final.zip
- name: Clean jboss directory archive
file:
state: absent
path: /usr/share/jboss-as/
- name: Delete user "jboss"
user:
name: jboss
state: absent
- name: Delete group "jboss"
group:
name: jboss
state: absent
- name: Delete the init script
file:
state: absent
dest: /etc/init.d/jboss
- name: Ensure that firewalld is removed
yum:
name: firewalld
state: absent