Only use iptables alternatives if iptables is installed with versions older than 1.8.8 (debian 11 ships with 1.8.7)
Fixes issue where using IPs as the inventory value would cause the first server node skip startup
Properly handled the downloading/removal of k3s-agent.service. Before we were unnecessarily installing the k3s server service alongside the agent service.
Testing
Tested on a 1 server 1 agent setup of:
server: PI4 with Raspberry Pi OS 12 (no iptables installed) (also weirdly this doesn't report as PI OS, just vanilla debian now??)
agent: PI4 with Raspberry Pi OS 11 (old iptables installed)
Changes
k3s-agent.service
. Before we were unnecessarily installing the k3s server service alongside the agent service.Testing
Tested on a 1 server 1 agent setup of: server: PI4 with Raspberry Pi OS 12 (no iptables installed) (also weirdly this doesn't report as PI OS, just vanilla debian now??) agent: PI4 with Raspberry Pi OS 11 (old iptables installed)
Linked Issues
https://github.com/k3s-io/k3s-ansible/issues/157