-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE-REQUEST]: unset
ting of a param in state:present
#349
Comments
Your point is valid w.r.t. desired state paradigm @pkodzis. Thank you for bringing up. |
(Thinking aloud) Would - name: ADD SG
delegate_to: localhost
netscaler.adc.servicegroup:
state: present
servicegroupname: test1-1
servicetype: TCP
netprofile: "" # <<<<<<<< This will UNSET netprofile
|
Absolutely - whatever that lets move on with 'state: present' works, including empty string |
I will consider your feedback and keep this in mind while designing. Thank you |
unset
ting of a param in state:present
unset
ting of a param in state:present
unset
ting of a param in state:present
Summary
Continuing issue #346
The provided solution works with servicegroup, but fails with service & lbvserver.
In case of servicegroup it provides expected result - after running special task with state:unset the netprofile is no longer assigmend to the servicegroup.
Although this method is not easy to use and seems hard to fit into the automation we have with Ansible ADC. It means we need extra tasks just to remove netprofile. If we use this way, I'll have to make 3 new types of tasks for services, service groups, and lbv servers. This makes our automation more complicated and it might not be worth it. I think it's better to just mention in our release notes that if someone needs to remove a netprofile, they should update the code as usual and do the change manually using the CLI. This will be easier than making big changes to our system.
Is there a way to handle this "unset" situation by using "state: present" with a special word, like netprofile:NONE? This would make it much simpler to add to our current automation.
Issue Type
Bug Report
Component Name
service/servicegroup/lbvserver
Python Version
Ansible Version
Ansible Configuration
$ ansible-config dump --only-changed
netscaler.adc Collection Version
Target NetScaler Version
> show ns version
Equivalent NetScaler CLI Command
Steps to Reproduce
Expected Results
netrpfiles removed
Actual Results
Additioinal Notes
No response
The text was updated successfully, but these errors were encountered: