Antergos, Debian, Fedora, Manjaro, Tutorials/Tips, Ubuntu

How to install Ansible on your favorite Linux distribution

Ansible is an open source, SSH-based configuration management, automation and deployment tool from Red Hat (via acquisition). It’s in the same market as Chef and Salt, but because it relies on SSH, something that’s already installed on your servers, it’s the easiest tool to use for managing and working on remote servers.

This post shows how to install it on your favorite Linux distribution.

Install Ansible on Debian/Ubuntu-based distributions

To install Ansible on any Linux distribution that uses Debian’s Advanced Packaging Tool (APT) for package management, use the following command:

Related Post:  How does your encrypted Linux system respond to the Cryptsetup bug?

Install Ansible on Fedora/CentOS-based distributions

To install Ansible on any Linux distribution that’s based on Fedora or CentOS, use one of the following commands:

Install Ansible on Arch Linux-based distributions

To install Ansible on any Linux distribution that uses pacman for package management, use the following command:

Related Post:  What to do when Shutter's Edit button is disabled

This article will not even attempt to go into all the cool and productivity-enhancing things you can do with Ansible, but you can start by learning how to retrieve you Internet router’s external, or public address using


LinuxBSDos needs your donation to continue!

I hope this article has saved you valuable time and effort to fix a problem that would have taken more time than is necessary. That makes me happy, and why I love doing this. But because more people than ever are reading articles like this with an adblocker, ad revenues have fallen to a level that's not enough to cover my operating costs. That's why I want to ask you a favor: To make a one-time or recurring donation to support this site and keep it going. It's a small favor, but every one counts. And you can make your donation using Patreon or directly via Paypal. Thank you for whatever donation you're able to make.

Donate via Patreon. Donate via Paypal.

Aside from donation, you may also signup to receive an email once I publish new content. Your email will not be shared or traded to anyone. And you can unsubscribe at any time.

Please share:

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.

Leave a Comment

Your email address will not be published. Required fields are marked *