-
name: log a message
debug:
msg: "20: Tonny was here"
-
name: Create SSL CSR
netapp.ontap.na_ontap_command:
<<: *auth
command: "security certificate generate-csr
-vserver thuis
-type server
-common-name thuis.home.nl
-size 4096
-hash-function SHA256
-country NL
-state Zuid-Holland
-locality Amsterdam
-dns-name thuis.home.nl"
# use_rest:
register: csr_result
- name: Show CSR
debug:
var: csr_result
Result:
ok: [localhost] =>
msg: '20: Tonny was here'
[WARNING]: The module only supports ZAPI and is deprecated, and will no longer work with newer versions of ONTAP when ONTAPI is deprecated in CY22-Q4
[WARNING]: netapp.ontap.na_ontap_rest_cli should be used instead.
[WARNING]: With version 22.0.0 ONTAPI (ZAPI) has been deprecated. The final ONTAP version to support ZAPI is ONTAP 9.13.1. ZAPI calls in these
modules will continue to work for ONTAP versions that supports ZAPI. You can update your playbook to use REST by adding use_rest: always to your
playbook. More information can be found at: https://github.com/ansible-collections/netapp.ontap
changed: [localhost]
ok: [localhost] =>
csr_result:
changed: true
failed: false
msg: <results xmlns="http://www.netapp.com/filer/admin" status="passed"><cli-output/><cli-result-value>0</cli-result-value></results>
warnings:
- The module only supports ZAPI and is deprecated, and will no longer work with newer versions of ONTAP when ONTAPI is deprecated in CY22-Q4
- netapp.ontap.na_ontap_rest_cli should be used instead.
- 'With version 22.0.0 ONTAPI (ZAPI) has been deprecated. The final ONTAP version to support ZAPI is ONTAP 9.13.1. More information can be found at: https://github.com/ansible-collections/netapp.ontap'