Keith Rogers

Recent Posts

How to install and configure Ansible on Red Hat Enterprise Linux

Note: This post is from 2016. For current instructions, reference the documentation.

With DevOps taking hold in businesses ranging from small design agencies to large enterprises, there has been a real push to automate deployments and make them consistent. As part of this, maintaining configuration as code and utilizing a version control system such as Git or Subversion to house it is becoming more prominent. Tools like Puppet and Chef have been around for a number of years, but many find these difficult or cumbersome to configure. Then Ansible came along. This article is going to show you how to get started with Ansible and demonstrate how it has become a viable alternative to Puppet or Chef.

Our Objectives

  • Establish Prerequisites
  • Install Ansible
  • Discuss Ansible layout
  • Create a basic configuration

Establish Prerequisites

For the purposes of this article, we’re working on a Red Hat Enterprise Linux 7.2 server which has been registered to the Red Hat Network for updates using subscription-manager register --auto-attach. The easiest way to install Ansible is by adding a third-party repository named EPEL (Extra Packages for Enterprise Linux), which is maintained over at You can easily add the repo by running the following command:

rpm -Uvh

No other software is required as Ansible utilizes SSH to interact with remote servers.

Continue reading “How to install and configure Ansible on Red Hat Enterprise Linux”


Setting up a LAMP stack on Red Hat Enterprise Linux

You obviously know what a LAMP stack is if you’ve managed to find your way here, but for those who may be unsure, the key is in the name (L)inux (A)pache (M)ariaDB (P)HP—a term that has become synonymous around the globe for building a basic web server with database and PHP functionality. There are a myriad of web applications, ranging from WordPress to Joomla to Magento that all use this setup, and if you know how to get it up and running, then you’re off to a great start. It couldn’t be easier with RHEL, so let’s get started. MariaDB can also be exchanged for MySQL or a database of your choice.

Continue reading Setting up a LAMP stack on Red Hat Enterprise Linux


Setting up KVM on Red Hat Enterprise Linux

Editor’s Note:  If you have a Linux system that runs KVM and would like to try Red Hat Enterprise Linux on KVM, follow our KVM Get started guide,

The kernel-based Virtual Machine (KVM) is a virtualization infrastructure many have become familiar with throughout the industry. This article will guide you through getting a basic KVM hypervisor up and running and ready for use. In order to fully utilize the KVM, you will need a CPU that has virtualization extensions, and these will need to be enabled in the BIOS of the machine you’re working on. In general, you’ll need to look to enable VT-X or AMD-V depending on your system architecture.

Our Objectives

  • Set up a RedHat Enterprise Linux (RHEL 7.2) server
  • Identify whether Virtualisation extensions are present
  • Install KVM and associated software components
  • Networking Considerations
  • Configure VNC
  • Demonstrate how to fire up a new Virtual Machine running on the KVM hypervisor
  • Listing existing Virtual Machines

Installing RHEL

For the purposes of this article, I’m going to be showing you how to manually install KVM from the command line, rather than opt to have it installed as part of the RHEL installation process. This will allow us to fine tune the installation by only installing what we need, and it also gives us a better understanding of how everything fits together. With this in mind, we will be working on the basis that you have opted for a ‘minimal install’ of RHEL. After first boot, you will want to register to the Red Hat network to receive updates and download software. This can be done by running the following command:

subscription-manager register –auto-attach

You will be prompted to enter your username and password.

Continue reading “Setting up KVM on Red Hat Enterprise Linux”