--- - name: Install nftables ansible.builtin.apt: name: nftables state: latest update_cache: true - name: Enable nftables service ansible.builtin.service: name: nftables state: started - name: Start nftables service ansible.builtin.service: name: nftables enabled: true