multiple blocks with the when: keyword?
On Fri, 1 Feb 2019 at 19:37, Rafael Tomelin <[email protected]>
wrote:
> 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
> <https://groups.google.com/d/msgid/ansible-project/CAGEUqbCOC35%3DisWmP65ZJ9kMpjgXNVJSV5uLCmS2RocVr00cqQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Keif Gwinn
--
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/CAMTXzjXJK5V%2BvtN%3DKJf1j6AssCtCj2Q1f-%3DSxj%2Bk1paYg058JA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.