Hi,
I want to create a role that would do all of this tasks:
-
Create vm from template with preconfigured IP address
-
Modify vm parameters
-
Power up and wait for vm to be network reachable
-
Connect to newly created vm through template hardcoded IP and change its network settings
Now i don’t want a static entry in inventory of vm template name and its ip as i want it both to be configured as role variable - in hosts i have specified only hypervisors IPs which it should run 1-3 tasks on but obviously the 4th task should be run on newly created VM reachable by templates IP.
How can i make the 4th task run solely on the new vm?
What would we the best possible route to achieve this?