---
description: Ansible is an agentless automation tool written in Python. It connects to your clients via SSH and allows you to automate the boring, repetitive tasks you...
title: What is Ansible?
image: https://www.storagereview.com/wp-content/uploads/2017/01/SR-SSD.gif
---

[![Storage Review]()](https://storagereview.com/)

---

[Facebook](https://www.facebook.com/@storagereview) [X (Twitter)](https://twitter.twitter.com/storagereview) [Instagram](https://www.instagram.com/storagereview/) [LinkedIn](https://www.linkedin.com/company/storagereview-com) [YouTube](https://www.youtube.com/user/storagereview?sub_confirmation=1) [Email](mailto:info@storagereview.com) [Spotify](https://open.spotify.com/show/1y6VnznABhHeOSMOmbDTz0) [Reddit](https://www.reddit.com/r/StorageReview/) [Discord](https://discord.gg/TwMHb4azdC) [RSS Feed](https://www.storagereview.com/rss.xml) [TikTok](https://www.tiktok.com/@storagereview)

[Facebook](https://www.facebook.com/@storagereview) [X (Twitter)](https://twitter.com/storagereview) [Instagram](https://www.instagram.com/storagereview/) [LinkedIn](https://www.linkedin.com/company/storagereview-com) [YouTube](https://www.youtube.com/user/storagereview?sub_confirmation=1) [Email](mailto:info@storagereview.com) [Spotify](https://open.spotify.com/show/1y6VnznABhHeOSMOmbDTz0) [Reddit](https://www.reddit.com/r/StorageReview/) [Discord](https://discord.gg/TwMHb4azdC) [RSS Feed](https://www.storagereview.com/rss.xml) [TikTok](https://www.tiktok.com/@storagereview)

[![StorageReview.com](https://www.storagereview.com/wp-content/uploads/2026/07/Storage-Review-2x.png)](https://www.storagereview.com)

≡ Menu

- [Home](https://www.storagereview.com/)
- [Storage Reviews](https://www.storagereview.com/review)
  - [End User Reviews](https://www.storagereview.com/consumer)
  - [Enterprise Reviews](https://www.storagereview.com/enterprise)
  - [Ubiquiti Reviews](https://www.storagereview.com/best/ubiquiti-reviews)
- [SR Merch](https://store.storagereview.com)
- [Leaderboards](https://www.storagereview.com/best)
  - [Best Storage Arrays](https://www.storagereview.com/best/storage-arrays)
  - [Best Enterprise SSDs](https://www.storagereview.com/best/enterprise-ssds)
  - [Best Servers](https://www.storagereview.com/best/servers)
  - [Best Enterprise GPUs](https://www.storagereview.com/best/enterprise-gpus)
  - [Best Desktops for Local AI](https://www.storagereview.com/best/desktops-local-ai)
  - [Best Laptops for Local AI](https://www.storagereview.com/best/laptops-local-ai)
  - [Best Local LLM Tools](https://www.storagereview.com/best/local-llm-tools)
  - [Agentic AI Hardware](https://www.storagereview.com/best/agentic-ai-hardware)
  - [Best SSDs & Hard Drives](https://www.storagereview.com/best_drives)
  - [Best Portable SSDs](https://www.storagereview.com/best/portable-ssds)
  - [Best Business Laptops](https://www.storagereview.com/best/business-laptops)
  - [Best Mobile Workstations](https://www.storagereview.com/best/mobile-workstations)
  - [Best Desktop Workstations](https://www.storagereview.com/best/desktop-workstations)
  - [Best Mini PCs](https://www.storagereview.com/best/mini-pcs)
  - [Best Laptop Battery Life](https://www.storagereview.com/best/laptop-battery-life)
- [Storage Reference Guide](https://www.storagereview.com/storage-reference-guide)
- [About SR](https://www.storagereview.com/about-storagereview)
  - [StorageReview.com Sweepstakes Rules and Regulations](https://www.storagereview.com/storagereview-com-sweepstakes-rules-and-regulations)

Search

[Home](https://www.storagereview.com/) » [News](https://www.storagereview.com/news) » What is Ansible?

# What is Ansible?

by Guest Author on July 27, 2019

[Enterprise](https://www.storagereview.com/enterprise)  ◇  [Software](https://www.storagereview.com/enterprise/software)

Ansible is an agentless automation tool written in Python. It connects to your clients via SSH and allows you to automate the boring, repetitive tasks you don't want to do. It allows you to take a task done by a human that may take an hour to perform, and convert it into a single command that completes within minutes. This improves your performance and allows you to start work on the next big project.

![](https://www.storagereview.com/wp-content/uploads/2019/07/StorageReview-Redhat-Ansible.PNG)

## **Ansible Benefits**

Ansible provides many benefits, let's take some time to look at some of the most important. I am going to break this down into to sections, one for those who have no or minimal automation, and another for those who are already using an automation tool like Salt or Puppet.

**New to Automation**

If you are new to automation, using a tool that is simple can help with the learning curve. Let's look at some reasons why you should choose Ansible over the other tools available.

1\. Simple syntax

Due to Ansible's simple way of defining tasks, it is very simple to get started with. Take the below snippet for example:

> *—*
>
> *– hosts: all*
>
> * tasks:*
>
> *  – name: Install Nginx*
>
> *   yum:*
>
> *     name: nginx*
>
> *     state: latest*

A complete Ansible task, equivalent to running \`yum install nginx\` on all of your hosts.

You can probably already tell what it is doing. It is installing the latest version of the [Nginx](https://www.nginx.com/) open-source web server on all of your defined hosts. We will look at defining hosts later. Since all of the tasks you create are in YAML, they are both easy to read, and easy to create. This is vital when starting to learn a new tool, as it allows you to quickly gain experience while building confidence and understanding.

2\. Git Love

Since your automations are simple text files, it is possible to store them in Git (or another source repository system), where they have change control and can be checked out and updated from a central source.

3\. Simple Execution Order

Since tasks are executed in the order you define, you do not have to worry about the execution order. Simply define the steps as you would to a human, and Ansible will execute them in exactly that order every time, without having to worry about missing a step.

4\. Agentless

Having an agentless way to manage your hosts is important, doubly so if you do not already have a way of deploying an agent in an automated manner. Trying to start an automation push in an existing environment can be a nightmare, especially if there are tens or hundreds of machines that need the new agent.

Automation Aficionado

If you have already done some automation, maybe using Bash, Python, or Powershell, you might be wondering what Ansible brings to the table. Let's take a look.

1\. Simple Orchestration

Have you ever tried to update a website using a bash script? Say you have a web load balancer or reverse proxy, 5 web servers, a database load balancer, and 2 database servers. You might spend hundreds of lines simply checking that each component was updated successfully.

With Ansible, you can define health checks, rolling upgrades, and set your load balancers to remove add and remove nodes during each step of the upgrade. You can see an example of this on the officialContinuous Delivery and Rolling Upgradesdocumentation.

2\. Idempotency

Idempotenceis the property of certain operations in mathematics and computer science whereby they can be applied multiple times without changing the result beyond the initial application.- Wikipedia Basically, the goal is to run your playbook once to set things as desired, and then keep running it every \*X\*number of hours/days/weeks to ensure that nothing has changed. If anything does change, you should be looking for the source of \*Configuration Drift\*in your environment.

Configuration Driftis where servers in infrastructure become more and more different as time goes on.- Shadow Soft

3\. Built-in secrets storage

Ansible's built-in secrets storage, called Ansible Vaultallows you to store sensitive data such as passwords, API keys, or even private keys in a secure manner, with the rest of your codebase, in source control. This is unheard of in Bash or Python, usually requiring third-party tools like an API-enabled password vault.

4\. Expandability

Ansible can be expanded easily for both Windows and Linux modules, as well as to communicate with third-party tools. This means that if you want to automate something, chances are there is already a community module you can use, or you can create or adapt an existing module in order to fit your needs.

You can find information about developing your own modules with the official documentation, or you can check out Ansible Galaxyfor community modules.

## **Getting Started With Ansible**

**Ansible Installation**

Getting started is as simple as installing Ansible on your workstation or server. I am going to be showing the RedHat/CentOS commands, but you can view other installation steps in the official documentation.

\`sudo yum install ansible\`

That's it! You have a fully functional Ansible control node installed and are ready to go.

**Inventory**

Ansible needs to know which machines to talk to and run your playbooks against. So let's look at setting up a basic inventory. The default inventory file is available at \`/etc/ansible/hosts\` on Linux. If you take a look at that file, you will see it is in an INI-like format, and probably looks something like this:

> *mail.example.com*
>
> *\[webservers]*
>
> *foo.example.com*
>
> *bar.example.com*
>
> *\[dbservers]*
>
> *one.example.com*
>
> *two.example.com*
>
> *three.example.com*

As explained in the documentation, the headings in brackets are group names, which allow you to classify systems into arbitrary groups. I would recommend you take some time and set up your inventory file, as it is important for Ansible to know which hosts you want to run tasks against.

**Creating a Playbook**

A playbook is a collection of tasks that are to be run against your hosts. You can create a playbook that's as simple as a single file with one play, or many files with multiple conditionals and imports from other playbooks. We are going to start off with a simple playbook that installs, starts and adds firewall rules for nginx on our webservers. In our hosts file, we might have something like this:

\[webservers]

web01.example.com

web02.example.com

and in our \`nginx-install.yaml\` file, we have the following:

> *—*
>
> *– hosts: webservers*
>
> * tasks:*
>
> *  – name: Install Nginx*
>
> *   yum:*
>
> *     name: nginx*
>
> *     state: latest*
>
> *  – name: Start Nginx*
>
> *   service:*
>
> *     name: nginx*
>
> *     state: started*
>
> *  – name: Allow port 80 through firewalld*
>
> *   firewalld:*
>
> *     port: 80/tcp # Alternatively, you can use the "service: http" syntax*
>
> *     permanent: yes*
>
> *     state: enabled*

![]()

Overview of the Ansible host connecting to your web servers and installing NGINX. To run this playbook, simply run \`ansible-playbook nginx-install.yaml\` and Ansible will go and install Nginx on any hosts in your webservers group. This is a simple playbook with a single play, however, it is a good example of the ease with which Ansible can be used in your environment.

## **Conclusion**

As you can see, Ansible is a very flexible and easy to use automation tool which can work in any environment. With its easy learning curve and ability to grow to your needs, Ansible is one of the best automation tools for infrastructure deployment to a full DevOps-managed environment.

-Justin Gauthier

[@justinsane454](https://twitter.com/justinsane454)

[Justin's GitHub](https://github.com/Just-Insane)

**Engage with StorageReview**

[Newsletter](https://www.storagereview.com/storage_newsletter) |  [YouTube](https://www.youtube.com/user/StorageReview "Opens in a new window") | Podcast  [iTunes](https://podcasts.apple.com/gb/podcast/storagereview-com-storage-reviews/id1060681115 "Opens in a new window")/ [Spotify](https://open.spotify.com/show/1y6VnznABhHeOSMOmbDTz0 "Opens in a new window") |  [Instagram](https://www.instagram.com/storagereview/ "Opens in a new window") |  [Twitter](https://twitter.com/storagereview "Opens in a new window") |  [TikTok](https://www.tiktok.com/@storagereview? "Opens in a new window") |  [RSS Feed](https://www.storagereview.com/rss.xml)

![]()

### Guest Author

Previous post: [The Importance of Hardware in Microsoft Azure Stack HCI](https://www.storagereview.com/news/the-importance-of-hardware-in-microsoft-azure-stack-hci)

Next post: [How To Upgrade To 2nd Generation Intel Xeon Scalable Processors](https://www.storagereview.com/news/how-to-upgrade-to-2nd-generation-intel-xeon-scalable-processors)

Trusted Vendors

Products and solutions from our affiliate partners:

- [  
  ![Ubiquiti Logo](https://www.storagereview.com/wp-content/uploads/2024/11/2-1.webp)  
   Ubiquiti  
  ](https://store.ui.com/us/en?a_aid=StorageReview "Opens in a new window")
- [  
  ![Newegg Logo](https://www.storagereview.com/wp-content/uploads/2025/11/newegg.webp)  
   Newegg  
  ](https://click.linksynergy.com/fs-bin/click?id=g5terNMDhz0&offerid=1207190.18&subid=0&type=4 "Opens in a new window")
- [  
  ![Amazon Logo](https://www.storagereview.com/wp-content/uploads/2025/11/amazon.webp) Amazon  
  ](https://amzn.to/4fLJUEW "Opens in a new window")

Newsletter

Subscribe to the StorageReview newsletter to stay up to date on the latest news and reviews. We promise no spam!

1  

Leave this field empty if you’re human:

## Advertisement

Content Categories

[Facebook](https://www.facebook.com/@storagereview) [X](https://twitter.com/storagereview) [Instagram](https://www.instagram.com/storagereview/) [LinkedIn](https://www.linkedin.com/company/storagereview-com) [YouTube](https://www.youtube.com/user/storagereview?sub_confirmation=1) [Email](mailto:info@storagereview.com) [Spotify](https://open.spotify.com/show/1y6VnznABhHeOSMOmbDTz0) [Reddit](https://www.reddit.com/r/StorageReview/) [Discord](https://discord.gg/TwMHb4azdC) [RSS](https://www.storagereview.com/rss.xml) [TikTok](https://www.tiktok.com/@storagereview)

Copyright © 1998-2025 Flying Pig Ventures, LLC Cincinnati, Ohio. All rights reserved.

Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Functional Always active

The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.

Preferences Preferences

The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.

Statistics Statistics

The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.

Marketing Marketing

The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.

Statistics

Marketing

Features

Always active

Special features

Special purposes

Always active

- Manage options
- Manage services
- Manage {vendor\_count} vendors
- [Read more about these purposes](https://cookiedatabase.org/tcf/purposes/)

Accept Deny Manage options Save preferences Manage options

- {title}
- {title}
- {title}

Manage your privacy

To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Functional Functional Always active

The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.

Preferences Preferences

The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.

Statistics Statistics

The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.

Marketing Marketing

The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.

Statistics

Marketing

Features

Always active

Special features

Special purposes

Always active

- Manage options
- Manage services
- Manage {vendor\_count} vendors
- [Read more about these purposes](https://cookiedatabase.org/tcf/purposes/)

Accept Deny Manage options Save preferences Manage options

- {title}
- {title}
- {title}

Manage consent Manage consent

```json
{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible","url":"https:\/\/www.storagereview.com\/news\/what-is-ansible","name":"What is Ansible? - StorageReview.com","isPartOf":{"@id":"https:\/\/www.storagereview.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible#primaryimage"},"image":{"@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible#primaryimage"},"thumbnailUrl":"https:\/\/www.storagereview.com\/wp-content\/uploads\/2017\/01\/SR-SSD.gif","datePublished":"2019-07-27T16:32:52+00:00","breadcrumb":{"@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.storagereview.com\/news\/what-is-ansible"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible#primaryimage","url":"https:\/\/www.storagereview.com\/wp-content\/uploads\/2017\/01\/SR-SSD.gif","contentUrl":"https:\/\/www.storagereview.com\/wp-content\/uploads\/2017\/01\/SR-SSD.gif","width":100,"height":70},{"@type":"BreadcrumbList","@id":"https:\/\/www.storagereview.com\/news\/what-is-ansible#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.storagereview.com\/"},{"@type":"ListItem","position":2,"name":"News","item":"https:\/\/www.storagereview.com\/news"},{"@type":"ListItem","position":3,"name":"What is Ansible?"}]},{"@type":"WebSite","@id":"https:\/\/www.storagereview.com\/#website","url":"https:\/\/www.storagereview.com\/","name":"StorageReview.com","description":"StorageReview.com is a leading provider of news and reviews throughout the entire IT stack - from the datacenter to the edge, and all points in between.","publisher":{"@id":"https:\/\/www.storagereview.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.storagereview.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.storagereview.com\/#organization","name":"StorageReview.com","url":"https:\/\/www.storagereview.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.storagereview.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.storagereview.com\/wp-content\/uploads\/2020\/02\/Storage-Reviews-2-2.png","contentUrl":"https:\/\/www.storagereview.com\/wp-content\/uploads\/2020\/02\/Storage-Reviews-2-2.png","width":344,"height":61,"caption":"StorageReview.com"},"image":{"@id":"https:\/\/www.storagereview.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/storagereview","http:\/\/youtube.com\/user\/storagereview"]}]}
```
