Thanks Brian 

Unfortunately, its not working for me. It still tries to make a direct 
connection

-bash-4.1$ export ANSIBLE_SSH_ARGS="-F /var/lib/awx/.ssh/config" ; 
ansible-playbook 
-i /opt/ansiblework/inventory/dmzhosts helloworld.yml -u webuser --ask-pass 
 -vvvv
SSH password:

PLAY [Hello World!] 
***********************************************************

GATHERING FACTS 
***************************************************************
<Target.Server.VM.IP> ESTABLISH CONNECTION FOR USER: webuser on PORT 22 TO 
Target.Server.VM.IP
fatal: [Target.Server.VM.IP] => {'msg': 'FAILED: [Errno 111] Connection 
refused', 'failed': True}

TASK: [Hello World!] 
**********************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting


PLAY RECAP 
********************************************************************
           to retry, use: --limit @/var/lib/awx/helloworld.retry

Target.Server.VM.IP            : ok=0    changed=0    unreachable=1   
 failed=0


Not sure what I am missing here



On Monday, November 2, 2015 at 6:28:28 PM UTC-8, Brian Coca wrote:
>
> As long as you don't set the remote user (ssh limitation), the ssh config 
> should be picked up automatically (just tested and works).
>
>
> -- 
> Brian Coca
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/965fe85d-c67b-4087-bb02-2d102a9b3c1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to