#################### #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