From 00d7aed56bdbc554dc26b4a32c77e4e9f92cc4ad Mon Sep 17 00:00:00 2001 From: anshulbehl Date: Wed, 10 Jul 2019 14:20:35 -0400 Subject: [PATCH] Changing LBName used by same task inside azure_rm_loadbalancer (#58936) fixes #58933 --- .../targets/azure_rm_loadbalancer/tasks/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/integration/targets/azure_rm_loadbalancer/tasks/main.yml b/test/integration/targets/azure_rm_loadbalancer/tasks/main.yml index 15538638812..3dad1a2e176 100644 --- a/test/integration/targets/azure_rm_loadbalancer/tasks/main.yml +++ b/test/integration/targets/azure_rm_loadbalancer/tasks/main.yml @@ -5,7 +5,8 @@ lbvnname: "lbvn{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" lbname_a: "lba{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" lbname_b: "lbb{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" - lbname_c: "lbc{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" + lbname_c1: "lbc1-{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" + lbname_c2: "lbc2-{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" lbname_d: "lbd{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" run_once: yes @@ -148,7 +149,7 @@ - name: create load balancer with multiple parameters azure_rm_loadbalancer: resource_group: '{{ resource_group }}' - name: "{{ lbname_c }}" + name: "{{ lbname_c1 }}" frontend_ip_configurations: - name: frontendipconf0 public_ip_address: "{{ pipaname }}" @@ -180,13 +181,13 @@ - name: delete load balancer azure_rm_loadbalancer: resource_group: '{{ resource_group }}' - name: "{{ lbname_c }}" + name: "{{ lbname_c1 }}" state: absent - name: create load balancer with multiple parameters azure_rm_loadbalancer: resource_group: '{{ resource_group }}' - name: "{{ lbname_c }}" + name: "{{ lbname_c2 }}" frontend_ip_configurations: - name: frontendipconf0 public_ip_address: "{{ pipaname }}" @@ -217,7 +218,7 @@ - name: delete load balancer azure_rm_loadbalancer: resource_group: '{{ resource_group }}' - name: "{{ lbname_c }}" + name: "{{ lbname_c2 }}" state: absent - name: Create virtual network