c12s-kubespray/contrib/azurerm/roles/generate-inventory/tasks/main.yml
2016-12-13 15:37:04 +01:00

11 lines
No EOL
266 B
YAML

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