Training #1 Ansible Installation

Overview:

Familiar methods to install Ansible: repository or python-pip


  • Install Ansible Core on RHEL 9
    • 1. Enable BaseOS and AppStream (media or RHN).
    • 2. Use “dnf” command to search for available Ansible package. #prac on dnf command
    • 3. Once identified the available Ansible package then perform installation with “dnf” command.
      • # e.g. dnf install ansible-core

  • Using python-pip to install Ansible (Network required)
  • The advantage of using pyhton-pip is that it will giving you access to the most recent version of the software before it is available in the repositories of Linux repositories.
    • 1. As Ansible user account (e.g. ansible_svc) on the system, enter # pip3 install ansible --user
    • 2. Verify installed Ansible once installation is complete, enter # ansible --version