Of course, that is possible @Neel, just follow these steps:
Set-up ssh-agent
$ ssh-agent bash
$ ssh-add ~/.ssh/id_rsa
And then run the following command:
$ ansible canada -a "/sbin/reboot" -f 15
Where Canada is a group of servers which needs to be rebooted.