When tried with system manager, the filer took it and installed the eval licenses. Does ansible check digital signature against system id/serial of the filer?
- name: Add nlf licenses
connection: local
na_ontap_license:
<<: *login
state: present
license_codes:
- "{{ lookup('file', item) }}"
use_rest: always
loop: "{{ lic_list }}"
tags:
- add_nlf
Output:
TASK [Add nlf licenses] *******************************************************************
failed: [filer1] (item=lic/NLF_eval_license) => {"ansible_loop_var": "item", "changed": false, "item": "lic/NLF_eval_license", "msg": "Error adding license: calling: cluster/licensing/licenses: got {'message': 'Failed to install the license at index 0 (keys[0]). Reason: The system received a licensing request with an invalid digital signature.', 'code': '1115142', 'arguments': [{'message': '0'}, {'message': 'The system received a licensing request with an invalid digital signature.'}], 'target': 'keys'}. - previous license status: {'installed_licenses': {}, 'base': 'compliant', 'nfs': 'unlicensed', 'cifs': 'unlicensed', 'iscsi': 'unlicensed', 'fcp': 'unlicensed', 'snaprestore': 'unlicensed', 'snapmirror': 'unlicensed', 'flexclone': 'unlicensed', 'snapvault': 'unlicensed', 'snaplock': 'unlicensed', 'snapmanagersuite': 'unlicensed', 'snapprotectapps': 'unlicensed', 'v_storageattach': 'unlicensed', 'insight_balance': 'unlicensed', 'ocshift': 'unlicensed', 'tpm': 'unlicensed', 've': 'unlicensed', 'dp_optimized': 'unlicensed', 'fabricpool': 'unlicensed', 'snapmirror_sync': 'unlicensed', 'nvme_of': 'unlicensed', 'mt_ek_mgmt': 'unlicensed', 's3': 'unlicensed', 'snapmirror_cloud': 'unlicensed'}"}