is it possible to add ansible_ssh_common_args in inventory file
<p>i want to jump/SSH Bastion Host using ProxyCommand of ansible_ssh_common_args.
ansible server:10.10.149.2
gateway/Bastion host:10.10.149.70
host to connect:10.32.32.190
So my aim is to connect 10.32.32.190 from 10.10.149.2 trough 10.10.149.70 (ssh tunneling)</p>

<p>ansible --version
ansible 2.1.0.0</p>

<p>my inventory:</p>

<pre><code>[local]
10.10.149.2

[Private]
10.32.32.190

[Private:vars]
ansible_ssh_common_args: '-o ProxyCommand="ssh -W %h:%p -q root@10.10.149.70"'
</code></pre>

<p>pingtest.yml:</p>

<pre><code>---
- hosts: Private
  tasks:
- name: test connection
  ping:
  register: ping1
- debug: var=ping1
</code></pre>

<p>Issue facing:</p>

<pre><code> fatal: [10.32.32.190]: UNREACHABLE! =&gt; {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
</code></pre>

<p>So i doubt ansible_ssh_common_args support in inventory file.i do not want to use the ssh.config file.</p>

<p>Logs:</p>

<pre><code>   [root@mavosdsc ansible]# ansible-playbook -i inventory pingtest.yml -e "user=root" --ask-pass -vvvv
   Using /etc/ansible/ansible.cfg as config file
   SSH password: 
   Loaded callback default of type stdout, v2.0

   PLAYBOOK: pingtest.yml *********************************************************
   1 plays in pingtest.yml

   PLAY [Private] *****************************************************************

   TASK [setup] *******************************************************************
   &lt;10.32.32.190&gt; ESTABLISH SSH CONNECTION FOR USER: None
   &lt;10.32.32.190&gt; SSH: EXEC sshpass -d12 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.32.32.190 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1469788026.71-124524328003439 `" &amp;&amp; echo ansible-tmp-1469788026.71-124524328003439="` echo $HOME/.ansible/tmp/ansible-tmp-1469788026.71-124524328003439 `" ) &amp;&amp; sleep 0'"'"''
   fatal: [10.32.32.190]: UNREACHABLE! =&gt; {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
   to retry, use: --limit @pingtest.retry

   PLAY RECAP *********************************************************************
   10.32.32.190               : ok=0    changed=0    unreachable=1    failed=0  
</code></pre>