[Bug]: unset netprofile gap? 2.3.0
pkodzis opened this issue · 1 comments
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:
unset serviceGroup test-sg1 -netProfile
Done
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:
unset serviceGroup test-sg1 -netProfile
Done
Actual Results
Additioinal Notes
No response
This is fixed in version 2.4.0
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 346
hosts: localhost
gather_facts: false
tasks:
- name: UNSET netprofile from servicegroup
delegate_to: localhost
netscaler.adc.servicegroup:
state: unset # <<<< New state `unset` is introduced
servicegroupname: test-sg1
netprofile: "true" # double-quotes are mandatory. Otherwise it will be treated as boolean