Open krausi24 opened 1 year ago
Executing a simple Task with the parameter "targetvserver" will result in the error: fatal: [dkr_adc6 -> localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver. Supported parameters include: comment, name, nitro_pass, nitro_protocol, nitro_timeout, nitro_user, nsip, save_config, state, targetlbvserver, targetvserverexpr, validate_certs."}
community.network.netscaler_cs_action
ansible [core 2.14.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/dkr/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible collection location = /home/dkr/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3) jinja version = 3.0.3 libyaml = True
# /home/dkr/.ansible/collections/ansible_collections Collection Version ----------------- ------- community.network 5.0.0 # /usr/lib/python3/dist-packages/ansible_collections Collection Version ----------------- ------- community.network 5.0.0
CONFIG_FILE() = /etc/ansible/ansible.cfg
Windows 10 WSL2
--- - name: Create content switching action delegate_to: localhost community.network.netscaler_cs_action: nsip: "{{ ansible_host }}" nitro_user: "{{ nitro_user }}" nitro_pass: "{{ nitro_pass }}" validate_certs: "{{ validate_certs }}" state: "{{ state }}" name: "{{ CA_name }}" targetvserver: "{{ CA_targetvserver }}"
TASK [netscaler_CA : Create content switching action] ************************************************************************************************************************************************* task path: /home/dkr/ansible-netscaler/roles/netscaler_CA/tasks/main.yml:2 <localhost> ESTABLISH LOCAL CONNECTION FOR USER: dkr <localhost> EXEC /bin/sh -c 'echo ~dkr && sleep 0' <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/dkr/.ansible/tmp `"&& mkdir "` echo /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159 `" && echo ansible-tmp-1686064633.6512814-11413-251207221205159="` echo /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159 `" ) && sleep 0' Using module file /home/dkr/.ansible/collections/ansible_collections/community/network/plugins/modules/netscaler_cs_action.py <localhost> PUT /home/dkr/.ansible/tmp/ansible-local-11409_qxdy2bo/tmpk8wi6nu1 TO /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py <localhost> EXEC /bin/sh -c 'chmod u+x /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/ /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py && sleep 0' <localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py && sleep 0' <localhost> EXEC /bin/sh -c 'rm -f -r /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/ > /dev/null 2>&1 && sleep 0' fatal: [dkr_adc6 -> localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "comment": null, "name": "CA_NGVS_gw", "nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "nitro_protocol": "http", "nitro_timeout": 310.0, "nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "nsip": "10.205.102.6", "save_config": true, "state": "present", "targetlbvserver": null, "targetvserver": "NGVS_gw", "targetvserverexpr": null, "validate_certs": false } }, "msg": "Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver. Supported parameters include: comment, name, nitro_pass, nitro_protocol, nitro_timeout, nitro_user, nsip, save_config, state, targetlbvserver, targetvserverexpr, validate_certs." } PLAY RECAP ******************************************************************************************************************************************************************************************** dkr_adc6 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
@krausi24 hello, thanks for reporting the issue
cc @chiradeep @giorgos-nikolopoulos (specified as maintainers)
SUMMARY
Executing a simple Task with the parameter "targetvserver" will result in the error: fatal: [dkr_adc6 -> localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver. Supported parameters include: comment, name, nitro_pass, nitro_protocol, nitro_timeout, nitro_user, nsip, save_config, state, targetlbvserver, targetvserverexpr, validate_certs."}
ISSUE TYPE
COMPONENT NAME
community.network.netscaler_cs_action
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows 10 WSL2
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS