Comments (9)
weight
and servicegroupname
are mutually exclusive for lbvserver_servicegroup_binding
.
If you need to use weight
, you can use servicename
parameter instead as below:
netscaler.adc.lbvserver_servicegroup_binding:
weight: 1
name : lb_vs_testlb_443
servicename: lb_sg_testlb_8443 # NOT `servicegroupname` since `weight` is present
Even with this combination (name
and servicename
), there was an error during second time running the playbook. This was due to a NITRO bug, which I am tracking internally.
I have given a workaround in the ansible module. So the below anomoly you may expect for lbvserver_servicegroup_binding
module:
lbvserver_servicegroup_binding
module if weight
is present in the playbook-task, the changed
flag is always set to true. On the other hand, if weight
is not present for this module, the resource is completely IDEMPOTENT.
Below is the man
page for bind lbvserver
from the NetScaler CLI
> man bind lbvserver
BIND LB VSERVER(NSCLI) Citrix Systems Inc. BIND LB VSERVER(NSCLI)
NAME
bind lb vserver
SYNOPSIS
bind lb vserver <name>@ ((<serviceName>@ [-weight <positive_integer>]
[-order <positive_integer>]) | <serviceGroupName>@ | (-policyName
<string>@ [-priority <positive_integer>] [-gotoPriorityExpression
<expression>] [-type <type>] [-invoke (<labelType> <labelName>) ] ) |
-analyticsProfile <string>@)
from ansible-collection-netscaleradc.
Try:
name : "lb_vs_testlb_443"
servicegroupname: "lb_sg_testlb_8443"
from ansible-collection-netscaleradc.
Did not work then I got the error Missing required key servicename
from ansible-collection-netscaleradc.
@stefanschlipfi, can you provide us the equivalent CLI you would try if you configure this via NSCLI?
Please include the lbvserver as well as servicegroup CLIs as well for the complete commands
from ansible-collection-netscaleradc.
preparation
add lb vserver lb_vs_testlb_443
add serviceGroup lb_sg_testlb_8443 SSL
failing command
bind lb vserver lb_vs_testlb_443 lb_sg_testlb_8443 -weight 1
from ansible-collection-netscaleradc.
@stefanschlipfi, can you try with the latest pr merge?
You can install unreleased version as below:
ansible-galaxy collection install "git+https://github.com/netscaler/ansible-collection-netscaleradc.git" --force
from ansible-collection-netscaleradc.
@stefanschlipfi, can you please update here?
from ansible-collection-netscaleradc.
Nothing changed, still the same Problem.
from ansible-collection-netscaleradc.
You can install the unreleased netscaler.adc
ansible collection via the below command:
ansible-galaxy collection install "git+https://github.com/netscaler/ansible-collection-netscaleradc.git" --force
I will keep this issue open for a couple of days till you respond.
from ansible-collection-netscaleradc.
Related Issues (20)
- [Bug]: netscaler.adc.policypatset: policypatset_pattern_binding: binding_members returning "KeyError: string" error HOT 5
- [FEATURE-REQUEST]: `unset`ting of a param in `state:present` HOT 4
- [Bug]: Cipher Group recreating even if exists HOT 1
- [Help]: SSLCertKey link doesn't work with the new version HOT 1
- [Bug]: systemglobal_authenticationtacacspolicy_binding module idempotency issue HOT 5
- [FEATURE REQUEST]: update tests to include ansible-2.14 and ansible-2.16
- [Bug]: hasync module missing state values
- [FEATURE REQUEST]: Update `requires_ansible` to 2.15 before May as Ansible Automation Platform 2.3 will reach its EoL
- [FEATURE REQUEST]: Support for GET, GET (All) and GET filtered operations on resources HOT 6
- [FEATURE REQUEST]: Do not fail on non-updatable module attributes HOT 6
- [FEATURE REQUEST]: Add resource dependency list to the nitro resource dependency map module util HOT 4
- [Bug]: servicegroup_servicegroupmember_binding inside of netscaler.adc.servicegroup module won't let me add binding members, only remove HOT 4
- [Bug]: gslbservice module breaks idempotency due to "ip" parameter not handled correctly HOT 1
- [Bug]: `responderglobal_responderpolicy_binding` not idempotent and unable to delete HOT 1
- [Bug]: netscaler.adc.lbvserver_service_binding is not idempotent HOT 1
- antsibull_docs-1.11.1-py3-none-any.whl: 4 vulnerabilities (highest severity is: 7.5)
- aiohttp-3.8.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl: 4 vulnerabilities (highest severity is: 7.5)
- [Bug]: `netscaler.adc.servicegroup` module is not idempotent when `tcpprofilename` attribute is used
- [FEATURE REQUEST]: Cert update HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-collection-netscaleradc.