####################
#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"
path: /home/mesasoft/sapp_runetc/entrylist.conf
state: touch
- 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
- "{{ fw_quic }}"
- "{{ tsg_conn_record }}"
- "{{ tsg_conn_sketch }}"
- name: "[uninstall firewall] remove /home/mesasoft/sapp_runetc"
path: /home/mesasoft/sapp_runetc