--- - name: Reload sysctl ansible.builtin.command: sysctl --system changed_when: true - name: Apply netplan # `netplan apply` reconfigures systemd-resolved with the new nameserver list; it does not # bounce the primary link's IP, so the SSH/NAT session survives (verified live on dev-1). ansible.builtin.command: netplan apply changed_when: true