Ansible with DellEMC Storage: Part 1 – Installing Ansible

There are many blogs which cover what is Ansible and why we should care. But this multi-part blog series will cover how DellEMC and Ansible can help you automate many storage tasks.

Ansible is being used in many organizations nowadays to manage a vast range of infrastructure, ranging from traditional configuration management to cloud resources in public clouds to physical infrastructure such as network and storage devices. There are multiple reasons why you might want to use Ansible, including – but not limited to – below examples.

  • You’re trying to have efficient DevOps environment
  • Automate Day 1/2 tasks
  • Need centralized configuration management

Getting Started with Ansible

Even if you’ve not installed Ansible before, it’s very easy to get started. There are many different ways to install Ansible and many dependencies will be needed based on your environment and systems you’ll be managing.

Once your Linux machine is up and running (CentOS in my case) you can follow next steps

Apart from Ansible itself there will be many dependencies which needs to be installed. In the case of DellEMC PowerMax storage we will need

Note that Ansible relies on Python and the Ansible for PowerMax modules relies on a the PyU4V Python library

So let’s get started

Check the installed Python version by running below command and make sure it’s supported version

# python -V

For installing PIP package on CentOS you will need to install EPEL repository, which can be done by running below command

# sudo yum install epel-release -y

Once EPEL is installed you can run below command to install PIP. Also check version once installed

# sudo yum install python-pip -y
# pip -V

As mentioned earlier DellEMC PowerMax Ansible integration relies on a the PyU4V Python library Run below command to install PyU4V

# pip install PyU4V

Finally run below command to install Ansible

# sudo yum install ansible

At this point you have successfully installed Ansible and ready for next parts.

Categories: ansible, DellEMC

Tagged as: , , , ,

3 replies »

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s