# Is there a way to use same IP for different host groups?

**URL:** <https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12606>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [March 30, 2013, 4:27pm UTC](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12606 "2013-03-30T16:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [March 30, 2013, 4:27pm UTC](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12606/1 "2013-03-30T16:27:08Z")

</div>

This has nothing to do with groups of hosts, actually, but everything  
to do with hosts.

Example:

alias1 ansible\_ssh\_host=portal ansible\_ssh\_port=1000  
alias2 ansible\_ssh\_host=portal ansible\_ssh\_port=1001

and can also be written as:

alias1:1000 ansible\_ssh\_host=portal  
alias2:1001 ansible\_ssh\_host=portal
