Do you need these plays to be in separate playbook? You can put multiple plays
in a single playbook. Play one can create an inventory group. Play two can run
agains that group. We use this for some of our tasks where we create new
machines, create a new inventory group, then run a play on that n
Thanks, Walter.
We're not using static addresses but dynamic. If we were, it would be
easier. I figured out the Ansible fact to grab the IP but this only grabs
it for a single host.
ansible_facts["azure_vm"]["network_profile"]["network_interfaces"][0]["properties"]["ip_configurations"][
You need names and corresponding IP addresses for an inventory.
Walter
--
Walter Rowe, Division Chief
Infrastructure Services Division
Mobile: 202.355.4123
On Jul 9, 2024, at 11:52 AM, HBach wrote:
Hi, community,
I am creating a deployment workflow using the Ansible Automation Platform (AAP)
Hi, community,
I am creating a deployment workflow using the Ansible Automation Platform
(AAP) and, right now, the workflow is composed of two job templates. The
first job template creates the actual vms and the the second job template
is used for some post-build configuration tasks. I want t