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