Hi, 

My EC2 instances are reachable via a jump host, however when I create a new 
EC2 instance as my first step of the play, the new DNS entry isn't 
available yet so the jump host configuration is not being used yet. 

I tried using 'add_host' and also 'wait_for' (to determine SSH 
availability) however, add_host doesn't really help me since the new DNS 
record doesn't exist yet, and using the private_dns_name 
(...compute.internal) will not trigger the jump host, and even if it did 
(Adding a entry for ompute.internal) I would have no means of determining 
where to send it to next (Multiple clouds).

Ideally I am looking for a way to tell add_host:

- The name of the machine I added (inventory_hostname)
- The Jump host to use
- The private_dns_name (which is already known) to use once on the jump 
host.

Any ideas?

Thanks,
Nico

-- 
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/74f4b2dd-e22c-447b-aebd-323c2fd3603e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to