Unable to connect to the server: x509: certificate is valid for 10.43.0.1, 127.0.0.1, not [remote ip]

Hi, I installed k3s on AWS EC2 with k3s-ansible (GitHub - k3s-io/k3s-ansible), but i can’t connect to k3s from local station via kubectl. It gives error:

Unable to connect to the server: x509: certificate is valid for 10.43.0.1, 127.0.0.1, not [remote ip].

How to add External IP of ec2 to existing k3s? I found 1 answer (Remote kubectl x509: certificate is valid for 127.0.0.1 · Issue #1381 · k3s-io/k3s · GitHub) how to do it, but it doesnt work at me.

I found that I can add “INSTALL_K3S_EXEC=”–tls-san [EXTERNAL IP]" option to k3s installation command.
But where can i add this option in installation config of k3s if i deploy k3s via ansible?