This commit is contained in:
zhangzhihan
2020-09-25 12:12:25 +08:00
parent 4177c779ef
commit b57e742be8
41 changed files with 638 additions and 1561 deletions

View File

@@ -0,0 +1,45 @@
####################
#Uninstall firewall
- name: "[uninstall firewall] stop sapp"
systemd:
name: sapp
state: stopped
enabled: no
when:
- uninstall.firewall == 1
ignore_errors: true
- name: "[uninstall firewall] uninstall firewall"
yum:
name:
- "{{ capture_packet_plug }}"
- "{{ dns }}"
- "{{ ftp }}"
- "{{ http }}"
- "{{ quic }}"
- "{{ ssl }}"
- "{{ mail }}"
- "{{ fw_dns }}"
- "{{ fw_ftp }}"
- "{{ fw_http }}"
- "{{ fw_ssl }}"
- "{{ fw_mail }}"
state: absent
when: uninstall.firewall == 1
- name: "[uninstall firewall] uninstall firewall"
yum:
name:
- "{{ fw_quic }}"
- "{{ tsg_conn_record }}"
- "{{ tsg_conn_sketch }}"
state: absent
when: uninstall.firewall == 1
ignore_errors: true
- name: "[uninstall firewall] remove /home/mesasoft/sapp_runetc"
file:
path: /home/mesasoft/sapp_runetc
state: absent
when: uninstall.firewall == 1