I have a Jump/Bastion server. want to enable MFA using goole authenticator. written an ansible playbook that install libpam-google-authenticator
and modify the /etc/pam.d/sshd
and /etc/ssh/sshd_config
with required config.
Is there any way I can run the google-authenticator
using ansible for a user? as this command generate the key and a QR code that user will scan or enter into app and enter code from app. so lot of back and forth happens in this step.