Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: retitle for series

...

Following is basic setup and configuration.

Table of Contents

Install Ansible

The simplest way to install Ansible is to use yum on a RHEL/CentOS server. This will typically get you version 2.1 or 2.3 of Ansible, which not the latest version (2.9, at time of writing) but would be usable for most operations.

...

Info
titleBest practice

In production, always configure an Ansible user per system that you plan to pull under orchestration and use that Ansible user when making changes. 

Set up password-less authentication

Digital Ocean has a good walk-through on key-based auth: How To Configure SSH Key-Based Authentication on a Linux Server

...

Once the password-less auth is setup, the next step is to go back to Ansible configuration.

Configure Ansible Host/Inventory files

The Ansible hosts file is a list of IP addresses or hostnames in groups that can be used to run commands against. This can be in INI or YAML (.ini or .yaml) format.

...

In the example above, the IP addresses could be replaced with host names as long as the Ansible host can resolve the host.

Run an Ansible command

There are a few different ways that you can use Ansible commands.

...