Ansible Basics

From Nick's Personal Wiki
Revision as of 07:18, 20 March 2025 by Nick (talk | contribs)
Jump to navigation Jump to search

Installing Ansible

Enable Required Repositories

Ansible is available via the EPEL (Extra Packages for Enterprise Linux) or the official Red Hat repositories.

Enable EPEL Repository

For RHEL systems, install the EPEL repository:

sudo dnf install epel-release 


Install Ansible

Once the repository is enabled, install Ansible using the package manager:

sudo dnf install ansible 


Verify the Installation

After installation, verify Ansible is installed correctly:

ansible --version 

You should see output similar to:

ansible [core 2.x.x]
  config file = /etc/ansible/ansible.cfg
  python version = 3.x.x 


Troubleshooting

  • If epel-release is not found, try enabling the codeready-builder repo or check for typos.


Additional Resources