ISSUE TYPE
- Bug Report
ANSIBLE VERSION
ansible 2.1.0.0
CONFIGURATION
test-mac:ansible$ ansible --version
ansible 2.1.0.0
config file = /Users/balviswa//ansible.cfg
configured module search path = Default w/o overrides
OS / ENVIRONMENT
mac osx
SUMMARY
ssh to port mapping in virtualbox not connecting to right port or using
right user specified in command line or hosts file
test-mac:ansible test$ ansible -vvvv -m ping pdit -ansible_user=test
-ansible_port=3333
Using /Users/test/ansible/ansible.cfg as config file
SSH password:
Loaded callback minimal of type stdout, v2.0
<127.0.0.1> ESTABLISH CONNECTION FOR USER: vagrant on PORT 2222 TO 127.0.0.1
127.0.0.1 | UNREACHABLE! => {
"changed": false,
"msg": "[Errno None] Unable to connect to port 2222 on 127.0.0.1",
"unreachable": true
}
STEPS TO REPRODUCE
1. Install ansible 2.1.0
2. configure hosts file to use ansible_user= and ansible_port= to
corresponding network mapping in virtual box
3. Test ansible -m ping
4. SSH failure
EXPECTED RESULTS
I expect ssh to use value provided in ansible_user and ansible_port instead
it is using vagrant and port mapping of 2222 from another box.
--
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/a0783519-7a1e-4e85-bca5-8c365fb379d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.