I am using the cisco.ise.system_certificate_exportmodule in ansible to export the certificates , but I am getting the following error :
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte
fatal: [localhost]: FAILED! => {"msg": "Unexpected failure during module execution: 'utf-8' codec can't decode byte 0x9a in position 10: invalid start byte", "stdout": ""}
this are the version I am using : ansible [core 2.18.0] , cisco.ise 2.9.5 , ciscoisesdk 2.2.3
This is the task i am using :
- name: Export certificate
cisco.ise.system_certificate_export_info:
ise_hostname: "{{ ise_host }}"
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: no
dirPath: "/corp/apps/network_ansible/backups/cisco_ise"
export: "CERTIFICATE_WITH_PRIVATE_KEY"
filename: "{{ ise_cert_name }}"
hostName: "{{ ise_host }}"
id: "{{ cert_id }}"
password: "{{ ise_cert_export_pass }}"
saveFile: true
Any thoughts about why is not working ?