How to avoid multiple login to the same device for multiple tasks?

Question: I have two tasks created, each requires a login credential for the device. When I run the playbook, it seems like the ansible has to login twice to the device (logs in, completes first task and logs out, login again, completes second task and logs out). This is making the operation slow because of multiple logins to same switch. How do I tell ansible to not logout and perform the second task with the credentials applied to the first one.

I am basically replacing all the ntp servers with the one in the variable file. I am concerned about the provider variable that I am passing on every task.

PLAYBOOK: