mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
* azure_rm_loadbalance should accpet a list of rules instead of one * fix lint * fix * fix * hook up load balancer rules, doc fixes, test updates
This commit is contained in:
parent
8a22b51755
commit
273a3d1d51
3 changed files with 552 additions and 189 deletions
|
@ -1,2 +1,3 @@
|
|||
cloud/azure
|
||||
posix/ci/cloud/group2/azure
|
||||
destructive
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
name: ansiblepip3
|
||||
resource_group: '{{ resource_group }}'
|
||||
|
||||
- name: clear load balancer
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: lbtestfromansible
|
||||
state: absent
|
||||
|
||||
- name: create load balancer
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
|
@ -25,6 +31,17 @@
|
|||
assert:
|
||||
that: output.changed
|
||||
|
||||
- name: delete load balancer (idempotent)
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: lbtestfromansible
|
||||
state: absent
|
||||
register: output
|
||||
|
||||
- name: assert load balancer deleted (idempotent)
|
||||
assert:
|
||||
that: not output.changed
|
||||
|
||||
- name: create another load balancer with more options
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
|
@ -55,6 +72,44 @@
|
|||
name: lbtestfromansible
|
||||
state: absent
|
||||
|
||||
- name: create load balancer with multiple parameters
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: lbtestfromansible
|
||||
frontend_ip_configurations:
|
||||
- name: frontendipconf0
|
||||
public_ip_address: ansiblepip3
|
||||
backend_address_pools:
|
||||
- name: backendaddrpool0
|
||||
probes:
|
||||
- name: prob0
|
||||
port: 80
|
||||
inbound_nat_pools:
|
||||
- name: inboundnatpool0
|
||||
frontend_ip_configuration_name: frontendipconf0
|
||||
protocol: Tcp
|
||||
frontend_port_range_start: 80
|
||||
frontend_port_range_end: 81
|
||||
backend_port: 8080
|
||||
load_balancing_rules:
|
||||
- name: lbrbalancingrule0
|
||||
frontend_ip_configuration: frontendipconf0
|
||||
backend_address_pool: backendaddrpool0
|
||||
frontend_port: 80
|
||||
backend_port: 80
|
||||
probe: prob0
|
||||
register: output
|
||||
|
||||
- name: assert complex load balancer created
|
||||
assert:
|
||||
that: output.changed
|
||||
|
||||
- name: delete load balancer
|
||||
azure_rm_loadbalancer:
|
||||
resource_group: '{{ resource_group }}'
|
||||
name: lbtestfromansible
|
||||
state: absent
|
||||
|
||||
- name: cleanup public ip
|
||||
azure_rm_publicipaddress:
|
||||
name: ansiblepip3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue