How to Install and Configure Ansible on CentOS 7

August 13, 2020 Liquid Web

Ansible is an IT automation tool intended to facilitate the management of remote servers. Ansible requires Python (version 2.7 or 3.5 and higher) to run. Ansible is run from a centralized control node and can manage any server accessible over SSH. Remote servers that are managed by Ansible are called managed nodes.

By default, Ansible communicates with managed nodes using OpenSSH. SSH is not the only communication mechanism Ansible supports. You can run tasks on the control server locally, in a docker container or even a Windows server. The control node will require Linux to run.

In this video, we demonstrate how to do How to Install and Configure Ansible on CentOS 7.

Commands used:
yum update
yum install epel-release
yum install ansible

useradd admin
passwd admin

useradd admin
passwd admin

visudo
admin ALL=(ALL) NOPASSWD: ALL

ssh-keygen
ssh-copy-id node.kb.liquidweb.com
vim /home/admin/inventory
node.kb.liquidweb.com
vim /home/admin/install-nginx.yml

ansible-playbook -i /home/admin/inventory /home/admin/install-nginx.yml

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Install and Configure Elasticsearch
How to Install and Configure Elasticsearch

In this video, we describe how to install and configure Elasticsearch.

Next Video
Reverse DNS Lookups
Reverse DNS Lookups

In this video, we describe how to perform a reverse DNS lookup.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now