Part 1: Ansible? what is that!

Automation and configuration with Ansible.

Sebastiaan avatar
  • Sebastiaan
  • 1 min read

Ansible is a configuration management tool that can be used for configuring servers, clients and network equipment.
The basic way of using this tool is through SSH, utilizing passwords or preferably SSH keys.
In this series we will be using Ansible for configuring a server through the following options;

  • ansible-commands: Execute single command on a host
  • ansible-playbooks": Run repeatable script(s) on a host
  • ansible-roles: Organize and reuse code for configurations tasks

There is a newer version called ansible-navigator that’s for another post, for now lets stick to the current version called ansible.

How to install

There are many different ways to install Ansible on your preferred Operating System.
In this Ansible series, we will be using MacOS for running Ansible.
To install Ansible on MacOS, all we need is:

  • Install homebrew:  here (optional if you already have homebrew installed).
brew update
brew install ansible

brew update checks for updates and then upgrade the current installed packages and finally, install Ansible through the package manager.
Once the installation is done, we can verify it by running:\

ansible --version

Now that we have Ansible installed, we can start managing our hosts. Stay tuned for the next post in this series!

Sebastiaan

Written by : Sebastiaan

Sysadmin/Platform/Devops Engineer

Recommended for You

Introduction

Introduction

The start of my New Years resolution.