Answer the question
In order to leave comments, you need to log in
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
well, either execute lxc commands or just your command through the shell
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 questionAsk a Question
731 491 924 answers to any question