Hi,

How defined variable value when other variable for different the 1.

Exemplo

vars:
  networkinterface_number: 1

- name: Create network interface
  azure_rm_networkinterface:
    name: "interface{{networkinterface_number}}"
    resource_group: my_resource
    virtual_network_name: my_virtual_network_name
    subnet_name: my_subnet
    ip_configurations:
      - name: ipconfig1
        public_ip_address_name: "{{ get_ip_public.state.name }}"
        primary: True * # if "{{networkinterface_number}}" for equal 1
primary True else False*
  with_sequence: count=3 #"{{networkinterface_number}}"

-- 
Atenciosamente,

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

LPI ID: LPI000191271

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGEUqbCOC35%3DisWmP65ZJ9kMpjgXNVJSV5uLCmS2RocVr00cqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to