> On 17. Feb 2022, at 09:29, igor haase <i.ha...@bosselnet.ch> wrote:
>
> Hello everyone,
> I am new in ansible. Therefore I have a question about editing the
> ansible.cfg.
> I am running a couple of server on different non-standard ssh ports e.g.
> 55500 55008 55012 etc.
>
> How can I configure that in the ansible.cfg? I already tried with seperated ,
Hi Igor, non-standard SSH ports typically go into the inventory,
not into ansible.cfg.
You can do either
[somegroup]
somehost:2222
or
[somegroup]
somehost ansible_port=2222
See
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#assigning-a-variable-to-one-machine-host-variables
for more details.
Cheers
-Andi
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-devel/B311C07B-AC43-47FC-96C9-1ED869075161%40gmail.com.