mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
os_loadbalancer: support to create populated load balancer (#44619)
The user can use os_loadbalancer module to configure a fully functional load balancer by specifying the sub-resources definition in the module, rather than combining os_listener, os_pool and os_member modules.
This commit is contained in:
parent
a7a99c5fd4
commit
cf1e0bde99
2 changed files with 466 additions and 118 deletions
|
@ -213,8 +213,9 @@ def main():
|
|||
if not pool:
|
||||
loadbalancer_id = None
|
||||
if not (loadbalancer or listener):
|
||||
module.fail_json("either loadbalancer or listener must "
|
||||
"be provided")
|
||||
module.fail_json(
|
||||
msg="either loadbalancer or listener must be provided"
|
||||
)
|
||||
|
||||
if loadbalancer:
|
||||
lb = cloud.load_balancer.find_load_balancer(loadbalancer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue