How To Install ansible-openstack-modules on CentOS 7

In this tutorial we learn how to install ansible-openstack-modules on CentOS 7. ansible-openstack-modules is Unofficial Ansible modules for managing Openstack

Introduction

In this tutorial we learn how to install ansible-openstack-modules on CentOS 7.

What is ansible-openstack-modules

Unofficial Ansible modules for managing and deployment of OpenStack. Contains all the necesary Neutron networking modules and also some Cinder, Glance, Keystone and Nova modules missing in the official modules.

We can use yum or dnf to install ansible-openstack-modules on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ansible-openstack-modules.

Install ansible-openstack-modules on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ansible-openstack-modules using yum by running the following command:

sudo yum -y install ansible-openstack-modules

Install ansible-openstack-modules on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ansible-openstack-modules using dnf by running the following command:

sudo dnf -y install ansible-openstack-modules

How To Uninstall ansible-openstack-modules on CentOS 7

To uninstall only the ansible-openstack-modules package we can use the following command:

sudo dnf remove ansible-openstack-modules

References

Summary

In this tutorial we learn how to install ansible-openstack-modules on CentOS 7 using yum and dnf.