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.

14 lines
311 B

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