Hi all,
Im new to ansible, I’ve been trying to remotely run some scripts on my linux server
my remote srv is connected via reverse SSH tunnel, so to remotely connect to it I run “ssh admin@localhost -p ”
but I simply can’t connect with to it using ansible
I added to my inventory (/etc/ansible/hosts) this:
[devices]
terminal ansible_ssh_port=22 ansible_ssh_host=127.0.0.1:30002 ansible_connection=ssh ansible_ssh_user=admin
I also tried this:
[devices]
terminal ansible_ssh_port=30002 ansible_ssh_host=127.0.0.1 ansible_connection=ssh ansible_ssh_user=admin
maybe there is a configuration or a flag I didn’t use / mark
any idea ?
thanks in advance for any help !