--- - name: Remove firewalld yum: name=firewalld state=absent tags: firewall - name: Install packages yum: name=iptables-services tags: firewall # EL10 comes with python 3.12 which removed distutils # distutils is needed by iptables_raw.py, so install setuptools which bring distutils back - name: Install setuptools package: name=python3-setuptools when: ansible_distribution_version is version(10, '>=') tags: firewall