I'm trying to use Ansible for automating the setup process of new server instances. One of the setup tasks changes the default SSH port, therefore requiring me to update the hosts list.
Is it possible to automate this by having Ansible fallback to a specified port if the connection could not be established to the default SSH port?