You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
266 B

  1. ---
  2. - name: Query Azure VMs
  3. command: azure vm list-ip-address --json {{ azure_resource_group }}
  4. register: vm_list_cmd
  5. - set_fact:
  6. vm_list: "{{ vm_list_cmd.stdout }}"
  7. - name: Generate inventory
  8. template: src=inventory.j2 dest="{{playbook_dir}}/inventory"