try this:

- hosts: localhost
  connection: local
  gather_facts: no
  vars_files:
    - vars/azure.yml
  tasks:
    - name: create VM
      azure:
        name: '{{ item }}'
        role_size: '{{ role_size }}'
        image: '{{ image_name }}'
        location: '{{ location }}'
        user: '{{ username }}'
        password: '{{ password }}'
        subscription_id: '{{ subscription_id }}'
        management_cert_path: '{{ certificate_path }}'
        storage_account: '{{ storage_account_name }}'
        virtual_network_name: '{{ virtual_network_name }}'
        wait: yes
      with_items:
          - "{{ vm_names_list }}" }
      register : azure

    - name  : Debug Azure output
      debug :
        var : azure


-- 
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3Dr7kSkrUfVacEz5wRzgwAqWK_wMjjW8XvG%2BWXjKeowag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to