summaryrefslogtreecommitdiff
path: root/houyi-uninstall.yml
blob: f01af062a188ec831d2a64bf76a4e51aa2937cbb (plain)
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
---
- hosts: active_defence
  tasks:
    - name: "stop sapp service"
      service:
        name: sapp
        state: stopped
      ignore_errors: yes
      when: install_sapp | bool   
      
    - name: "stop houyi service"
      service:
        name: houyi
        state: stopped
      ignore_errors: yes

    - name: "uninstall houyi"
      yum:
        name: "houyi"
        state: absent           

    - name: "uninstall houyi-common-tools"
      yum:
        name: "houyi-common-tools"
        state: absent   
        
    - name: "uninstall houyi-plug"
      yum:
        name: "houyi-plug"
        state: absent           
        
    - name: "uninstall wire-graft"
      yum:
        name: "wire-graft"
        state: absent        

    - name: "uninstall sapp"
      yum:
        name: "sapp"
        state: absent  
      when: install_sapp | bool   
        
    - name: "uninstall net_flood"
      yum:
        name: "net_flood"
        state: absent