Software Development Kit (SDK) and API Discussions

Ansible using HTTPS by default

RahulM
1,555 Views

As per below given article. 

netapp.ontap.na_ontap_info module – NetApp information gatherer — Ansible Documentation there is below note: 

  • The modules prefixed with na_ontap are built to support the ONTAP storage platform.

  • https is enabled by default and recommended. To enable http on the cluster you must run the following commands ‘set -privilege advanced;’ ‘system services web modify -http-enabled true;’

Can someone confirm if https is default and recommended then why do we need http to enable ?

1 ACCEPTED SOLUTION

Ontapforrum
1,496 Views

Https is the recommended method.

 

To run Ansible modules over https the following lines need to be added to each modules arguments
https: true
validate_certs: false

 

Alternate Workaround: Enable http access in ONTAP
cluster1::> set advanced
cluster1::*> system service web modify -http-enabled true

View solution in original post

3 REPLIES 3

Ontapforrum
1,522 Views

Yes, https is default and recommended. That note is only suggesting that for whatever reason if you want to use http, then it must be enabled on the cluster (as http is disabled by default). Probably, the way that sentence is placed may have confused you.

RahulM
1,508 Views

Exactly, that statement in article is confusing. So, https is required to enabled if already not enable that would be helping to get work ansible module. Please confirm if any other way to get work ansible module for NetApp cluster or only https would be helpful. Thanks.

Ontapforrum
1,497 Views

Https is the recommended method.

 

To run Ansible modules over https the following lines need to be added to each modules arguments
https: true
validate_certs: false

 

Alternate Workaround: Enable http access in ONTAP
cluster1::> set advanced
cluster1::*> system service web modify -http-enabled true

Public