Skip to content
Jan 5 / Greg

Adding Local Repository On RHEL – For AAP

If you want to install Ansible Navigator or Ansible Builder on your machines, you really should be doing it from the Red Hat official files and not via PIP. The bundled Ansible Automation Platform installer includes the RPMs to install both navigator and builder. Here’s a quick and easy way to make the RPM directory a local repo.

Create the repo file(/etc/yum.repo.d/ansible-local.repo):

1
vi /etc/yum.repo.d/ansible-local.repo
1
2
3
4
5
[ansible-local]
name=ansible-local
enabled=1
gpgcheck=0
baseurl=file:///root/ansible-automation-platform-setup-bundle-2.1.0-1/bundle/el8/repos

In the above, you need to edit the baseurl to match your directory structure. Note that the baseurl needs to have three “/”s.

View the repolist to make sure our new repo shows up in the list:

1
dnf repolist

Install navigator:

1
dnf install ansible-navigator

If you want to install builder just do ansible-builder instead in the above.

If you have any questions or comments, please let me know!
Thanks and happy repo’ing!

Leave a Comment

 

*