community.network.netscaler_lb_vserver – Manage load balancing vserver configuration¶
This plugin is part of the community.network collection (version 1.3.0).
To install it use:
ansible-galaxy collection install community.network.
To use it in a playbook, specify:
Manage load balancing vserver configuration
This module is intended to run either on the ansible control node or a bastion (jumpserver) with access to the actual netscaler instance
The below requirements are needed on the host that executes this module.
nitro python sdk
For more information on using Ansible to manage Citrix NetScaler Network devices see https://www.ansible.com/ansible-netscaler.
# Netscaler services service-http-1, service-http-2 must have been already created with the netscaler_service module - name: Create a load balancing vserver bound to services delegate_to: localhost community.network.netscaler_lb_vserver: nsip: 172.18.0.2 nitro_user: nsroot nitro_pass: nsroot validate_certs: no state: present name: lb_vserver_1 servicetype: HTTP timeout: 12 ipv46: 184.108.40.206 port: 80 servicebindings: - servicename: service-http-1 weight: 80 - servicename: service-http-2 weight: 20 # Service group service-group-1 must have been already created with the netscaler_servicegroup module - name: Create load balancing vserver bound to servicegroup delegate_to: localhost community.network.netscaler_lb_vserver: nsip: 172.18.0.2 nitro_user: nsroot nitro_pass: nsroot validate_certs: no state: present name: lb_vserver_2 servicetype: HTTP ipv46: 220.127.116.11 port: 80 timeout: 10 servicegroupbindings: - servicegroupname: service-group-1
Common return values are documented here, the following are the fields unique to this module: