This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-wannat-ansible-deploy/wannat-uninstall.yml
2021-12-01 21:42:24 +08:00

87 lines
1.7 KiB
YAML

---
- hosts: toroad
tasks:
- name: "stop toroad service"
service:
name: toroad
state: stopped
ignore_errors: yes
- name: "uninstall toroad"
yum:
name: "toroad"
state: absent
- name: "uninstall libwire_graft"
yum:
name: "libwire_graft"
state: absent
- hosts: natgw
tasks:
- name: "stop natgw service"
service:
name: natgw
state: stopped
ignore_errors: yes
- name: "uninstall wannat_natgw"
yum:
name: "wannat_natgw"
state: absent
- hosts: natgw
tasks:
- name: "uninstall wannat_common"
yum:
name: "libwannat_common"
state: absent
- name: "uninstall nanomsg"
yum:
name: "nanomsg"
state: absent
- hosts: radius_server
tasks:
- name: "stop radiusd service"
service:
name: radiusd
state: stopped
ignore_errors: yes
- name: "uninstall freeradius"
yum:
name: "freeradius"
state: absent
- name: "uninstall freeradius-mysql"
yum:
name: "freeradius-mysql"
state: absent
- name: "uninstall freeradius-utils"
yum:
name: "freeradius-utils"
state: absent
- hosts: radius_client
tasks:
- name: "uninstall radiusclient-ng"
yum:
name: "radiusclient-ng"
state: absent
- hosts: pptpd
tasks:
- name: "stop pptpd service"
service:
name: pptpd
state: stopped
ignore_errors: yes
- name: "uninstall pptpd"
yum:
name: "pptpd"
state: absent