Hi,

I want to do loop in the dict variable appliance and in variable have var
count.  This count I should like loop count.

appliances:
  fw01:
    count: 2
    vmname: name
    image: redhat
    os_type: Linux
    data_disks:
      - lun: 0
        disk_size_gb: 128
        managed_disk_type: Standard_LRS

I create this task debug for tests:

- name: virtual_machine
  debug:
    msg: "{{ item.key }} - {{ item.value.count }}"
  with_dict:
    - "{{ virtual_machine }}"
  with_sequence: start=0 end="{{ item.value.count }}"

but return this error:
ERROR! duplicate loop in task: sequence



How can create this loop?

-- 
Atenciosamente,

Rafael Tomelin
Tel.: 51-984104084
Skype: rafael.tomelin

LPI ID: LPI000191271
Red Hat Certified Engineer
Puppet Professional 2017 Certification

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGEUqbBJAcUKQRJqWpY0GEJqZqcynM6VwpnG64QNGQS-%3DyjccA%40mail.gmail.com.

Reply via email to