Comments (4)
@rnsc Glad you raised this question, we will investigate and check this feature. Thank you!
from azure.
hello,
i'm afraid we need this feature to feed a list into the probes with "with_items" option. If not, how can we use a list to create multiple load_balancing_rules ?
Thanks
from azure.
hello,
i'm afraid we need this feature to feed a list into the probes with "with_items" option. If not, how can we use a list to create multiple load_balancing_rules ?Thanks
We are investigating this feature and will make improvements as soon as possible!
from azure.
Is anyone looking into this issue? The other Azure Ansible modules I've used are additive and only upsert data if the key (e.g. name) is the same (for example the NSG rules)...
That said, the following playbook works around the issue by creating the list of loadbalancer rules first (via set_fact
+ loop
) and then feeds this into azure_rm_loadbalancer
. @hdiass I guess you found your own workaround, but for others:
---
- name: Load Balancer Example
hosts: localhost
vars:
clients:
- name: client1
number: 10
- name: client2
number: 20
- name: client3
number: 30
tasks:
# workaround dumb module behaviour
- set_fact:
load_balancing_rules: "{{ load_balancing_rules | default([]) + [load_balancing_rule] }}"
loop: "{{ clients }}"
loop_control:
label: "{{ item.name }} ({{ item.number }})"
vars:
load_balancing_rule:
name: "{{ item.name }}"
backend_port: "{{ 20000 + (item.number * 10) | int}}"
protocol: Tcp
frontend_port: "{{ 10000 + (item.number * 10) | int}}"
frontend_ip_configuration: "my-frontend-ip"
backend_address_pool : "my-backend-address-pool"
probe: my-health-probe
# disable_outbound_snat: true
- debug: var=load_balancing_rules
- name: Add Load Balancer rules
azure.azcollection.azure_rm_loadbalancer:
profile: prod
resource_group: load-balancer-rg
name: dummy-load-balancer
load_balancing_rules: "{{ load_balancing_rules }}"
from azure.
Related Issues (20)
- The `network_profile.outbound_type` property of the `azure_rm_aks` module does not accept `managedNATGateway`/`userAssignedNATGateway` HOT 1
- Return detailed diff from the `azure_rm_aks` module HOT 1
- azure_rm_subscription_info does not function as documented or expectd HOT 10
- Upgrade from 1.19 to 2.x - "msg": "Find the key vault secret got exception, exception as The current credential is not configured to acquire tokens for tenant xxx. HOT 15
- azure_rm_accesstoken_info leads to TypeError: Session.request() got an unexpected keyword argument 'claims' HOT 4
- azure_rm_resource_info subscription_id passed as parameter is not overruling environment variable HOT 4
- Azure inventory traceback when NIC isn't fully provisioned
- azure_rm_adapplication_info add option "app_diff"
- IPv6 address parsed as IPv4 HOT 6
- Hi, @Fred-sun and @markstoel.
- Login via Federated Credentials for Managed Identities HOT 1
- azure_rm_adapplication is not idempotent HOT 3
- azure_rm_adgroup_info returns error if device is not member of group HOT 2
- Feature Request: azure_rm_virtualmachine powerstate as a single parameter HOT 2
- Add option for web file source to azure_rm_storageblob module
- azure_rm_storageaccount: Add allowSharedKeyAccess as option HOT 2
- Creating snapshot of Premium SSD v2 managed disk fails due to module using 2019-03-01 api-version HOT 2
- [azure_rm_openshiftmanagedcluster] Add support for outbound-type HOT 1
- Creation of azure_rm_openshiftmanagedclusterversion_info module
- azure-identity pinned version has vulnerability HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure.