Comments (3)
This is a valid issue.
The reason these two attributes are not in the module's options is that the module makes the assumption that when an object is retrieved, even for values that are not set in the module arguments, the NITRO API returns every attribute of the specified object.
In most cases this is true. Even unset attributes are returned with default values.
This is useful for the module to assess the equality of the playbook configuration and the actual object attributes and decide if an update is necessary.
The resrule
and rule
options are not returned unless explicitly set on the object.
When the modules were written this situation was not addressed.
The fix for this would require to introduce handling for attributes with this particular behavior.
We will keep track of this issue and fix it in the future.
from ansible-collection-netscaleradc.
Update:
Having had a read of the citrix_adc_lb_vserver module, not even the resrule
parameter is present. The resrule
parameter is only mentioned in the module documentation but actually not implemented as a paramter either.
from ansible-collection-netscaleradc.
We recently added the citrix_adc_nitro_resource
module.
Have a look at its documentation here
Perhaps you can use a playbook similar to the following to create a lb vserver with the rule parameter defined.
- hosts: citrix_adc
gather_facts: False
vars_files:
- workflows.yaml
tasks:
- name: Setup nitro resource lb vserver
delegate_to: localhost
citrix_adc_nitro_resource:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
state: present
workflow: "{{ workflow.lbvserver }}"
resource:
name: lb-vserver-1
servicetype: HTTP
ipv46: 6.93.3.3
port: 80
rule: "some expression here"
from ansible-collection-netscaleradc.
Related Issues (20)
- [Bug]: "ERROR: Primary key `serverip` is missing for the resource `ntpserver`" HOT 1
- [Bug]: unable to delete lbvserver (netscaler.adc 2.1.0) HOT 2
- [Bug]: lbmonitor (netscaler.adc 2.1.0) HOT 3
- [Bug]: service healthmonitor setting fails with incorrect type (netscaler.adc 2.1.0) HOT 2
- [FEATURE REQUEST]: save configuration module HOT 6
- [Bug]: can't delete servicegoup (2.1.0) HOT 3
- [FEATURE REQUEST]: restoring default values HOT 2
- [Bug]: dnsproxyrecords supports no state HOT 2
- [Bug]: unset netprofile gap? 2.3.0 HOT 1
- [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]: ERROR: Primary key `name` is missing for the resource `lbvserver_servicegroup_binding HOT 9
- [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
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.