S
S
Sergey Galkin2017-10-21 16:46:59
SSH
Sergey Galkin, 2017-10-21 16:46:59

How to tell Ansible ssh -A -t 192.168.0.11 sudo -E su when connecting to host?

You need to at least -m ping from ansible to machine vm1 , which is a virtual machine on host h1
How to make ansible do what putty does if you add ssh -A -t 192.168 . to h1 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2017-10-22
@opium

well, either execute lxc commands or just your command through the shell

V
Vyacheslav Rakhinsky, 2018-07-02
@rakhinskiy

And if you try this
https://github.com/ansible/ansible/issues/12686
ansible_become_exe: 'ssh -A -t 192.168.0.11 sudo -E su'
And for task do become: yes
Or so
https://stackoverflow .com/questions/28553307/ansib...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question