[Bug]: netscaler.adc.sslcertkey module - linkcertkeyname parameter has no affect
radhikari-arch opened this issue · 1 comments
radhikari-arch commented
Summary
Here is the ansible task:
- name: Install certificate
netscaler.adc.sslcertkey:
nsip: "{{ provider_nsip }}"
nitro_user: "{{ provider_username }}"
nitro_pass: "{{ provider_password }}"
nitro_protocol: https
validate_certs: false
certkey: "{{ common_name_filename }}-{{ suffix }}"
inform: PFX
cert: "{{ common_name_filename }}-{{ suffix }}.pfx"
key: "{{ common_name_filename }}-{{ suffix }}.pfx"
linkcertkeyname: "DigiCertCA"
expirymonitor: ENABLED
notificationperiod: 30
password: false
passplain: "{{ netscaler_certificate_passphrase }}"
save_config: true
register: import_certs
With this task, the cert get installed. The CA cert named DigiCertCA was already installed manually. But this task does not link the certificate o the DigiCertCA. When I check the cert links it shows empty. I can manually link to DigiCertCA though from the portal.
How do I link the cert to the CA?
Issue Type
Bug Report
Component Name
netscaler.adc.sslcertkey
Python Version
$ python --version # or python3 --version
Python 3.6.8
Ansible Version
$ ansible --version
ansible 2.9.15
Ansible Configuration
$ ansible-config dump --only-changed
netscaler.adc Collection Version
$ ansible-galaxy collection list netscaler.adc
[2.0.3] - 2023-11-14
Target NetScaler Version
> show ns version
NetScaler NS13.1: Build 50.23.nc, Date: Oct 18 2023, 00:53:13 (64-bit)
Equivalent NetScaler CLI Command
Steps to Reproduce
- name: Install certificate
netscaler.adc.sslcertkey:
nsip: "{{ provider_nsip }}"
nitro_user: "{{ provider_username }}"
nitro_pass: "{{ provider_password }}"
nitro_protocol: https
validate_certs: false
certkey: "{{ common_name_filename }}-{{ suffix }}"
inform: PFX
cert: "{{ common_name_filename }}-{{ suffix }}.pfx"
key: "{{ common_name_filename }}-{{ suffix }}.pfx"
linkcertkeyname: "DigiCertCA"
expirymonitor: ENABLED
notificationperiod: 30
password: false
passplain: "{{ netscaler_certificate_passphrase }}"
save_config: true
register: import_certs
Expected Results
The cert gets linked to CA with the user pf parameter linkcertkeyname
Actual Results
Additioinal Notes
No response
sumanth-lingappa commented
This is fixed in the latest PR: #357
You can download the latest unreleased version
ansible-galaxy collection install "git+https://github.com/netscaler/ansible-collection-netscaleradc.git" --force