Comments (2)
The type conversion of string value "NO"
to false
is and Ansible built in behavior.
You can override this behavior by using type coercion in the playbook to force the type of the usip
argument to remain a string.
That is define the value like so: usip: !!str "NO"
I tested it on the same Ansible version as you have and it works.
Below is the full playbook source I used to verify the fix.
- hosts: citrix_adc
gather_facts: False
vars:
attributes_service:
name: test_service_1
port: 80
ip: 192.168.10.1
serviceType: HTTP
usip: !!str "NO"
cip: enabled
cipheader: X-Forwarded-For
tasks:
- name: Add Service
delegate_to: localhost
register: result
netscaler_nitro_request:
expected_nitro_errorcode: [0, 273]
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
operation: add
resource: service
attributes: "{{ attributes_service }}"
ignore_errors: result.nitro_errorcode == 273
Let us know if this works out for you.
from ansible-collection-netscaleradc.
I have tested it. It worked. Thanks a lot!
from ansible-collection-netscaleradc.
Related Issues (20)
- [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
- [Bug]: Systemuser "unset" not working HOT 1
- [Bug]: sslcertkey module not idempotent. "Resource already exists" HOT 1
- [Bug]: DH Key creation fails
- [FEATURE REQUEST]: Use X-NITRO-SAVECONFIG header instead of sending saveconfig
- [FEATURE REQUEST]: Show HA node module can be included to verify the show command on netscaler HOT 3
- [Bug]: `requires_ansible` in `meta/runtime.yml` is not matching with `ansible-core` in `requirements.txt`
- [FEATURE REQUEST]: Adopt new README template as per ansible
- [FEATURE REQUEST]: Upgrade the test pipeline to use ansible-core 2.17
- requests-2.31.0-py3-none-any.whl: 1 vulnerabilities (highest severity is: 5.6)
- [FEATURE REQUEST]: Align module params with the equivalent Terraform module and NITRO
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.