mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Added a tunneling example
This commit is contained in:
parent
b365e04616
commit
e43abe326f
1 changed files with 2 additions and 0 deletions
|
@ -24,4 +24,6 @@ examples:
|
||||||
code: add_host hostname=${ip_from_ec2create} groups=just_created foo=42
|
code: add_host hostname=${ip_from_ec2create} groups=just_created foo=42
|
||||||
- description: add a host with a non-standard port local to your machines
|
- description: add a host with a non-standard port local to your machines
|
||||||
code: add_host hostname='${new_ip}:${new_port}'
|
code: add_host hostname='${new_ip}:${new_port}'
|
||||||
|
- description: add a host alias that we reach through a tunnel
|
||||||
|
code: add_host hostname=${new_ip} ansible_ssh_host=${inventory_hostname} ansible_ssh_port=${new_port}'
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue