cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 67 Views

Commands to Install Ansible

The following commands can be used to install Ansible
on a RHEL node:

$ sudo python -m pip install ansible

         or  

$ sudo dnf install ansible-core

 

Are there any other commands that can be used
to accomplish this?

 

Trevor "Red Hat Evangelist" Chandler
Labels (1)
0 Kudos
1 Reply
  • 20 Views


@Trevor wrote:

The following commands can be used to install Ansible
on a RHEL node:

$ sudo python -m pip install ansible

         or  

$ sudo dnf install ansible-core

 

Are there any other commands that can be used
to accomplish this?

 



Yes. On RHEL, Ansible can also be installed using:

 

$ sudo dnf install ansible
 

(from AppStream or EPEL, depending on the RHEL version).
Additionally, Ansible can be installed in isolated environments using tools like pipx, but dnf and pip remain the most common methods.

0 Kudos
Join the discussion
You must log in to join this conversation.