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
solutions-tsg-scripts/uninstall/roles/firewall/tasks/main.yml
2020-10-24 12:08:31 +06:00

73 lines
1.6 KiB
YAML

####################
#Uninstall firewall
- name: "[uninstall firewall] stop sapp"
systemd:
name: sapp
state: stopped
enabled: no
when:
- uninstall.firewall == 1
ignore_errors: true
- name: "[uninstall firewall] create /home/mesasoft/sapp_runetc/"
file:
path: /home/mesasoft/sapp_runetc/
state: directory
when: uninstall.firewall == 1
- name: "[uninstall firewall] create entrylist.conf"
file:
path: /home/mesasoft/sapp_runetc/entrylist.conf
state: touch
when: uninstall.firewall == 1
- 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 fw_quic"
yum:
name:
- "{{ fw_quic }}"
state: absent
when: uninstall.firewall == 1
ignore_errors: true
- name: "[uninstall firewall] uninstall tsg_conn_record"
yum:
name:
- "{{ tsg_conn_record }}"
state: absent
when: uninstall.firewall == 1
ignore_errors: true
- name: "[uninstall firewall] uninstall tsg_conn_sketch"
yum:
name:
- "{{ 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