Ansible: Install & Configure & Test on RHEL, CentOS | Linux Automation


    In this tutorial, I will give a brief introduction about Ansible, then I will install, configure, and test Ansible commands, modules, and finally creating a playbook ( YAML file) to install httpd service on target servers.

    Operating System used: CentOS 7 virtual machines on VmWare Workstation.

    Environment Setup:

    Connect three CentOS 7 machines in Vmware Workstation using NAT or LAN networking option.

    Alternatively, you have option to add Ubuntu machine for testing. ( instead of yum use apt)


    Ansible is an open-source software provisioning, configuration management, and application-deployment tool.

    It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows.

    It includes its own declarative language to describe system configuration.

    Ansible was written by Michael DeHaan and acquired by Red Hat in 2015.

    Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks.

    Useful Resources:

    YAML file used in this tutorial – Get it from my Github account:

    Ansible Documentation:

    Ansible Wikipedia:

    Tutorial Parts :

    Overview – 00:00
    Installation – 06:08
    Configure Ansible – 07:52
    Test Commands – 13:30
    Create Playbook (YAML) – 20:00
    Test Playbook – 27:35

    Thank you for watching!

    Like & subscribe!


    Previous articleHow to force ansible to use http + kerberos (error WINRM CONNECTION ERROR: 401 Unauthorized.)?
    Next article05. Docker Network Overview