Re: [ansible-project] Create inventory in a Workflow and then use in subsequent playbooks

2024-07-10 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
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

Re: [ansible-project] Create inventory in a Workflow and then use in subsequent playbooks

2024-07-10 Thread HBach
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"][

Re: [ansible-project] Create inventory in a Workflow and then use in subsequent playbooks

2024-07-09 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
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)

[ansible-project] Create inventory in a Workflow and then use in subsequent playbooks

2024-07-09 Thread HBach
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