• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Learn Network Automation

  • Network Automation
    • Ansible
    • Python
    • Terraform
    • pyATS
    • Git
    • Postman
  • ISE
  • Cisco
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • Blog
    • CCIE Blog
  • COURSES

What is Ansible?

ansible logo - rogers ccie blog - what is ansible

Anisble is an open source automation platform which was purchased by Red Hat in October 2015. It is used heavily by the server admin community for application deployment and to administer and deploy updates and patches to Linux servers.

In the last few years it has gained a great following from the network community who are now using it to administer and automate network operations across a wide variety of platforms.

Where did Ansible get it’s name from?

From Wikipedia – https://en.wikipedia.org/wiki/Ansible

An Ansible is a category of fictional device or technology capable of instantaneous or faster-than-light communication. It can send and receive messages to and from a corresponding device over any distance or obstacle whatsoever with no delay. The term Ansible is broadly shared across works of several science fiction authors, settings and continuities.

Is Ansible Free?

Page Contents

  • Is Ansible Free?
    • Ansible Architecture Diagram
    • What is Ansible Playbook?
  • What is Ansible Tower?
    • Is Ansible Tower Free?
    • What is Ansible AWX?
    • Ansible vs Jenkins
    • Ansible vs Docker
    • Ansible vs Puppet vs Chef
    • Ansible for Network Engineers
    • Can Ansible run on Windows?

YES!, Ansible is an open source software and thus free to use and can be downloaded and installed from a number of sources, it will currently only run on a Linux or Mac that has Python installed. It will not run on Windows. It’s one of the most popular devops tools in use today, saving you time performing repeatable tasks. Originally used for Linux servers and web services, but now gaining a massive following in the network automation community.

If you want to move into a supported model you need to look at Red Hat Ansible Automation Platform. You can license your nodes and get support and certified collections from Red Hat.

Ansible Engine a version of Ansible with full support from Red Hat and also Ansible Tower a GUI front end to drive Ansible core Ansible Tower is licensed on a per node basis.

But if you just want to download Ansible and use it for your home or production use – it is free to use.

Ansible Architecture Diagram

ansible architecture diagram

The architecture of Ansible is very simple, it consists of an Automation Engine, which is typically an install on a Linux host i.e Ubuntu, then then input into that Engine via a user in the form of a Playbook. You can also optionally have input from an external source i.e Github. Then the output is an SSH connection to the hosts you want to configure. Ansible is written in Python but you do not need to know Python to use it.

If you are a network engineer check out my Ansible Training for Network Engineers Course

What is Ansible Playbook?

Ansible Playbooks are written in YAML. It is a text file that is used to tell Ansible what to automate. It is also a human readable file that contains a list of simple actions to perform when automation server or network tasks. An example of an Ansible Playbook to conifgure a Nexus Switch is shown below

---
- hosts: NEX-9K-Leaf-1

gather_facts: false
 connection: local

tasks:
 - name: Configure RID Loopback Lo0
 nxos_config:
 lines:
 - description "Configured by Ansible"
 - ip address 1.1.1.2/32
 parents: interface loopback0

- name: Configure VTEP Loopback Lo1
 nxos_config:
 lines:
 - description "Configured by Ansible"
 - ip address 100.100.100.2/32
 parents: interface loopback1

What is Ansible Tower?

Ansible Tower is basically a GUI front end for Ansible, but it is much more than that.

It offers:

  • Role based access to allow certain users to run only specific tasks
  • It hides credentials from certain users running playbooks
  • Full logging of all playbook runs and output
  • Scheduling of tasks
  • Rest API functionality
  • Tower dashboard giving you visibility of job runs / success/ failures

Is Ansible Tower Free?

Ansible Tower is free to use for up to 10 devices, however Ansible Tower is really a paid tool if you want to manage a network of any size.

If you are looking for free, keep reading.

What is Ansible AWX?

Ansible AWX is the open source upstream project for Tower. It is free to use and contains all the latest code and updates. However it is not supported by RedHat. If you want try out Tower for free then look at AWX.

If you want a fully supported enterprise automation platform then you should be looking at Tower.

There are many other open source network automation tools available that do similar jobs and to which Ansible is often compared to but they are all different and are suitable for different jobs. The list below shows some of the common comparisons

Ansible vs Jenkins

Ansible is not really a replacement for Jenkins it is actually a product you would use alongside Jenkins.

Jenkins is more of a continous pipeline engine

Ansible vs Docker

Ansible and Docker are two completely different things, I am not sure why the are often compared, but Docker is a container platform used to run multiple hosts (containers) on a single platform.

Ansible vs Puppet vs Chef

The closest comparison to Ansible are other two main automation tools, Puppet & Chef. Whilst they do a lot of things the same the main advantage that Ansible has over both these tools is that it is Agentless, so only requires an SSH connection to the target device.

Puppet & Chef require an agent to be installed on the target device. Whilst this is fine for server administration it does not work for most network hardware, which is why Ansible is fast becoming the network automation tool of choice for network engineers.

ansible network automation course
Buy my Ansible Course for only £29

Ansible for Network Engineers

Ansible is a great tool for configuration management for network devices which makes it a great tool for network engineers.

Other Ansible posts:

  • Ansible vs Python
  • Ansible Tutorial to Backup a Cisco IOS Router Configuration
  • Ansible Hosts File
  • Ansible Network Automation Course

Can Ansible run on Windows?

The short answer is no. Ansible will only run on a linux based system, however if you want to run Ansible on Windows you can look to install the Windows subsystem for Linux or run a Virtual machine on your Windows device.

Category: Ansible for Network Engineers
Previous Post: « the remote system refused the connection cisco ssh tutorial The Remote System Refused the Connection – Cisco Router SSH
Next Post: VXLAN Terminology »

Sidebar

ansible training course

Recent Posts

  • Netmiko
  • Terraform Tutorial
  • How to install Ansible AWX
  • Terraform Associate Certification
  • Terraform vs Ansible
  • 5 Best Ergonomic Office Chairs UK
  • My Perfect Laptop Desk Setup

Check out my YouTube Channel

youtube button

Topics

Network Automation
Ansible
Python
CCIE
Cisco ISE
F5 Certification
BGP
OSPF

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


COURSES

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Social

Follow along on social media

Contact

Get in touch with me here

[email protected]

Navigation

Home

Blog

About

Contact

YouTube

Don’t forget to take a look at my YouTube Channel

youtube button

Copyright © 2021 · Roger Perkin · All Rights Reserved · Powered by Mai Theme