Skip to content

NetApp ONTAP Ansible Collection

Laurent Nicolas edited this page May 12, 2021 · 2 revisions

Versioning

Releasing, Versioning and Deprecation

Requirements

  • ansible version >= 2.9
  • requests >= 2.20
  • netapp-lib version >= 2018.11.13
  • six
  • when using ONTAP SnapMirror with ElementSW
    • solidfire-sdk-python >= 1.5.0.87

Installation

ansible-galaxy collection install netapp.ontap

Installation in a closed environment

If you do not have connectivity to Galaxy in your production environment, you will need to:

  • download a collection tarball in an environment with access to internet,
  • move the tarball from the public environment to your private environment. The specifics depends on your company,
  • use galaxy collection install with the tarball file in your private environment.

There are two ways to download the collection tarball:

  • CLI: galaxy collection download <collection_path>
  • GUI: using the Ansible Galaxy web site, locate the collection of interest and click the Download tarball button.

Example

ansible-galaxy collection download netapp.cloudmanager

Transfer file, then install it:

ansible-galaxy collection install collections/netapp-cloudmanager-21.3.0.tar.gz

If you see a certificate issue when accessing galaxy, you can update your certificate, or disable the security check (at your own risk!): -c, --ignore-certs Ignore SSL certificate validation errors.

If a collection is already installed, use the --force option to force an update if needed.

Reference

https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html

Automation Hub

The collections that are certified are also available in Red Hat Automation Hub if you have a subscription.

Source code

https://github.com/ansible-collections/netapp.ontap

Resource Supported

See https://docs.ansible.com/ansible/latest/collections/ for documentation.

The documentation generation may lag, in the meantime use ansible-doc for the latest updates. For instance:

  ansible-doc netapp.ontap.na_ontap_svm

Need help

Join our Slack Channel at Netapp.io

Check automation blogs about Ansible, playbooks, Tower, AWX, and more at https://netapp.io/configuration-management-and-automation/