k8s-clusters/ansible/k3s-node/tasks/use-firewalld-with-iptables.yml
2022-02-06 15:52:03 -06:00

9 lines
382 B
YAML

- name: uninstall nftables, install firewalld, configure it to use iptables, and activate it
when: ansible_facts.os_family == 'Archlinux'
become: true
ansible.builtin.command: >
pacman -Rs nftables \
&& pacman -Sy firewalld \
&& sed -i 's/FirewallBackend=.*/FirewallBackend=iptables/g' /etc/firewalld/firewalld.conf \
&& systemctl enable --now firewalld