Difference between revisions of "Ansible Basics"

From Nick's Personal Wiki
Jump to navigation Jump to search
(Initial Ansible Basics commit)
 
Line 1: Line 1:
 
== Installing Ansible ==
 
== Installing Ansible ==
  
== Overview ==
 
Ansible is a powerful open-source automation tool used for configuration management, application deployment, and task automation.
 
  
  
 
+
=== Enable Required Repositories ===
== Enable Required Repositories ==
 
 
Ansible is available via the ''EPEL (Extra Packages for Enterprise Linux)'' or the official Red Hat repositories.
 
Ansible is available via the ''EPEL (Extra Packages for Enterprise Linux)'' or the official Red Hat repositories.
  
Line 16: Line 13:
  
  
== Install Ansible ==
+
=== Install Ansible ===
 
Once the repository is enabled, install Ansible using the package manager:
 
Once the repository is enabled, install Ansible using the package manager:
  
Line 22: Line 19:
  
  
=== Verify the Installation ===
+
==== Verify the Installation ====
 
After installation, verify Ansible is installed correctly:
 
After installation, verify Ansible is installed correctly:
  
Line 34: Line 31:
  
  
== Troubleshooting ==
+
=== Troubleshooting ===
 
* If ''epel-release'' is not found, try enabling the ''codeready-builder'' repo or check for typos.
 
* If ''epel-release'' is not found, try enabling the ''codeready-builder'' repo or check for typos.
  
  
  
== Additional Resources ==
+
=== Additional Resources ===
 
* [https://developers.redhat.com/products/ansible/overview#ansibleautomationplatformonedgeandpubliccloud256 Redhat Developer Site]
 
* [https://developers.redhat.com/products/ansible/overview#ansibleautomationplatformonedgeandpubliccloud256 Redhat Developer Site]

Revision as of 07:18, 20 March 2025

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