Changing LBName used by same task inside azure_rm_loadbalancer (#58936)

fixes #58933
This commit is contained in:
anshulbehl 2019-07-10 14:20:35 -04:00 committed by GitHub
parent 15d76d97a9
commit 00d7aed56b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,8 @@
lbvnname: "lbvn{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}" lbvnname: "lbvn{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
lbname_a: "lba{{ 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_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 }}" lbname_d: "lbd{{ resource_group | hash('md5') | truncate(7, True, '') }}{{ 1000 | random }}"
run_once: yes run_once: yes
@ -148,7 +149,7 @@
- name: create load balancer with multiple parameters - name: create load balancer with multiple parameters
azure_rm_loadbalancer: azure_rm_loadbalancer:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: "{{ lbname_c }}" name: "{{ lbname_c1 }}"
frontend_ip_configurations: frontend_ip_configurations:
- name: frontendipconf0 - name: frontendipconf0
public_ip_address: "{{ pipaname }}" public_ip_address: "{{ pipaname }}"
@ -180,13 +181,13 @@
- name: delete load balancer - name: delete load balancer
azure_rm_loadbalancer: azure_rm_loadbalancer:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: "{{ lbname_c }}" name: "{{ lbname_c1 }}"
state: absent state: absent
- name: create load balancer with multiple parameters - name: create load balancer with multiple parameters
azure_rm_loadbalancer: azure_rm_loadbalancer:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: "{{ lbname_c }}" name: "{{ lbname_c2 }}"
frontend_ip_configurations: frontend_ip_configurations:
- name: frontendipconf0 - name: frontendipconf0
public_ip_address: "{{ pipaname }}" public_ip_address: "{{ pipaname }}"
@ -217,7 +218,7 @@
- name: delete load balancer - name: delete load balancer
azure_rm_loadbalancer: azure_rm_loadbalancer:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: "{{ lbname_c }}" name: "{{ lbname_c2 }}"
state: absent state: absent
- name: Create virtual network - name: Create virtual network