Azure IP ASG

11 views
Skip to first unread message

Nitrous

unread,
Mar 9, 2022, 3:20:01 PM3/9/22
to Ansible Project
How would you make this work, only if ASG is provided:

ip_configurations:
      - name:xxxx
        primary: True
        private_ip_allocation_method: Static
        private_ip_address: '{{ server.az_vm_ipaddress }}'
        #application_security_groups: '{{ server.az_vm_asg }}'

If in my az_vm_asg is not defined as a variable in my yaml file for the build, it errors out, saying:

"The error was: 'dict object' has no attribute 'az_vm_asg'"

So I have to comment out the asg section in the module for azure_rm_networkinterface, for the build to run. Is it possible to not have that commented out and still have a null variable accepted for az_vm_asg,
in my yaml build file? Thanks

Dick Visser

unread,
Mar 9, 2022, 5:50:42 PM3/9/22
to ansible...@googlegroups.com

--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/674b3964-b6eb-4ce1-b955-b3cc8c57165dn%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages