I have had a small problem that I did not find in the Ansible documentation, I would like to be able to attack several ssh ports with my playbooks, is there a way to tell Ansible that, apart from port 22, attack more ports?
It seems to me that the most logical thing would be to do it with variables in the Ansible playbooks, but I can't find too much information about this, does anyone have the same problem?
you can add port into invertory:
then:
should change port.