Automation and Configuration Management are indispensable to an efficient DevOps driven environment. NetApp has supported Ansible modules for ONTAP and Element software.  So, let’s get right to it and see how all this works.

Part 1. Install Ansible

If you don’t have Ansible already installed, getting it is very easy.  There are multiple ways to get Ansible, but I will be focusing on the PIP method.  PIP is a python package manager.  I am using CentOS 7.5 for my examples but with minor changes this will work for any distribution.

For CentOS the pip package is in the EPEL repository, so first I need to install that repo.

$ sudo yum install epel-release -y

Once that is installed it’s a simple matter to add PIP.

$ sudo yum install python-pip -y

Now that we have PIP installed we can add Ansible with a single line.

$ sudo pip install ansible

The last thing we need from PIP is some NetApp specific python modules.

$ sudo pip install netapp-lib solidfire-sdk-python

That’s it, Ansible has had NetApp supported modules in the default distribution since release 2.6!

Join me next Getting Started, to learn how to update to the newest NetApp modules between Ansible releases.

If you have any questions or comments join me on our Slack workspace in the #configurationmgmt channel. Also keep an eye on for all new information on what we are doing around Ansible.

You can see a video demonstration of these steps here.

Part 1. Install Ansible
Part 2. Update NetApp Modules
Part 3. Understanding Playbooks
Part 4. First Playbook Example
Part 5. Complete Workflow

David Blackwell on Linkedin
David Blackwell
Technical Marketing Engineer at NetApp
David is a twenty year IT veteran who has been an admin for just about every aspect of a DataCenter at one time or another. When not working, or tinkering with new software at home, David spends most of his free with his four year old son and his lovely wife.

Pin It on Pinterest