c12s-kubespray/contrib/azurerm/roles/generate-inventory/tasks/main.yml

15 lines
311 B
YAML
Raw Permalink Normal View History

---
- name: Query Azure VMs # noqa 301
command: azure vm list-ip-address --json {{ azure_resource_group }}
register: vm_list_cmd
2019-05-16 07:27:43 +00:00
- name: Set vm_list
set_fact:
vm_list: "{{ vm_list_cmd.stdout }}"
- name: Generate inventory
template:
src: inventory.j2
dest: "{{ playbook_dir }}/inventory"