You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to "unset" netprofile from service/servicegroup.
It seems this CLI feature is not supported by netscaler.adc and as a result I can't do this via Ansible:
CLI exmaple:
unset serviceGroup test-sg1 -netProfile
Done
Issue Type
Bug Report
Component Name
service/servicegroup and probably others that need unset
Example playbook to unset. Please note the double quotes around true. These are mandatory to tell ansible it is a string literal. Otherwise, without double-quotes, true will be treated as boolean.
---
- name: Issue 346hosts: localhostgather_facts: falsetasks:
- name: UNSET netprofile from servicegroupdelegate_to: localhostnetscaler.adc.servicegroup:
state: unset # <<<< New state `unset` is introducedservicegroupname: test-sg1netprofile: "true"# double-quotes are mandatory. Otherwise it will be treated as boolean
Summary
Unable to "unset" netprofile from service/servicegroup.
It seems this CLI feature is not supported by netscaler.adc and as a result I can't do this via Ansible:
CLI exmaple:
Issue Type
Bug Report
Component Name
service/servicegroup and probably others that need unset
Python Version
$ python3 --version; ansible --version; ansible-galaxy collection list netscaler.adc
Python 3.9.5
ansible [core 2.15.6]
config file = None
configured module search path = ['/home/pkodzis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pkodzis/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/pkodzis/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pkodzis/.local/bin/ansible
python version = 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
/home/pkodzis/.ansible/collections/ansible_collections
Collection Version
netscaler.adc 2.3.0
Ansible Version
$ python3 --version; ansible --version; ansible-galaxy collection list netscaler.adc
Python 3.9.5
ansible [core 2.15.6]
config file = None
configured module search path = ['/home/pkodzis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pkodzis/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/pkodzis/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pkodzis/.local/bin/ansible
python version = 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
/home/pkodzis/.ansible/collections/ansible_collections
Collection Version
netscaler.adc 2.3.0
Ansible Configuration
$ ansible-config dump --only-changed
netscaler.adc Collection Version
$ python3 --version; ansible --version; ansible-galaxy collection list netscaler.adc
Python 3.9.5
ansible [core 2.15.6]
config file = None
configured module search path = ['/home/pkodzis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pkodzis/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/pkodzis/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pkodzis/.local/bin/ansible
python version = 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
/home/pkodzis/.ansible/collections/ansible_collections
Collection Version
netscaler.adc 2.3.0
Target NetScaler Version
> show ns version
Equivalent NetScaler CLI Command
Steps to Reproduce
n/a, i dont know how to even try unset via ansible.
Expected Results
CLI exmaple:
Actual Results
Additioinal Notes
No response
The text was updated successfully, but these errors were encountered: