Showing posts with label ansible. Show all posts
Showing posts with label ansible. Show all posts

August 19, 2021

How to install ansible on Oracle Linux 7

 

OS : OEL 7.9

Download EPEL Repo

You can download EPEL repo from this link

https://dl.fedoraproject.org/pub/epel/

To download directly in the server use wget command

[root@bastionhost opc]# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


Install EPEL repo


[root@bastionhost opc]# rpm -Uvh epel-release-latest-7.noarch.rpm

warning: epel-release-latest-7.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:epel-release-7-13                ################################# [100%]

 

Install Anisble

[root@bastionhost opc]# yum install ansible

Loaded plugins: langpacks, ulninfo

https://ookla.bintray.com/rhel/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden

Trying other mirror.

epel/x86_64/metalink                                                                     | 8.4 kB  00:00:00

epel                                                                                     | 4.7 kB  00:00:00

(1/3): epel/x86_64/group_gz                                                              |  96 kB  00:00:00

(2/3): epel/x86_64/updateinfo                                                            | 1.0 MB  00:00:02

(3/3): epel/x86_64/primary_db                                                            | 6.9 MB  00:00:03

Resolving Dependencies

--> Running transaction check

---> Package ansible.noarch 0:2.9.18-1.el7 will be updated

---> Package ansible.noarch 0:2.9.24-2.el7 will be an update

--> Finished Dependency Resolution

 

Dependencies Resolved

 

================================================================================================================

 Package                   Arch                     Version                        Repository              Size

================================================================================================================

Updating:

 ansible                   noarch                   2.9.24-2.el7                   epel                    17 M

 

Transaction Summary

================================================================================================================

Upgrade  1 Package

 

Total download size: 17 M

Is this ok [y/d/N]: y

Downloading packages:

epel/x86_64/prestodelta                                                                  | 1.3 kB  00:00:00

warning: /var/cache/yum/x86_64/7Server/epel/packages/ansible-2.9.24-2.el7.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 352c64e5: NOKEY

Public key for ansible-2.9.24-2.el7.noarch.rpm is not installed

ansible-2.9.24-2.el7.noarch.rpm                                                          |  17 MB  00:00:06

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

Importing GPG key 0x352C64E5:

 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"

 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5

 Package    : epel-release-7-13.noarch (installed)

 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

Is this ok [y/N]: y

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Warning: RPMDB altered outside of yum.

  Updating   : ansible-2.9.24-2.el7.noarch                                                                  1/2

  Cleanup    : ansible-2.9.18-1.el7.noarch                                                                  2/2

  Verifying  : ansible-2.9.24-2.el7.noarch                                                                  1/2

  Verifying  : ansible-2.9.18-1.el7.noarch                                                                  2/2

 

Updated:

  ansible.noarch 0:2.9.24-2.el7

 

Complete!

 

 


Verify Anisble Version:-

[root@bastionhost opc]# ansible --version

ansible 2.9.24

  config file = /etc/ansible/ansible.cfg

  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

  ansible python module location = /usr/lib/python2.7/site-packages/ansible

  executable location = /bin/ansible

  python version = 2.7.5 (default, Nov 13 2020, 02:52:00) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)]

 


Installation complete. Ansible is ready to use.

Oracle Database 26ai Installation Using RPM on Oracle Linux 9 (OEL 9) – Step-by-Step Guide

  In this post I will describe the installation of Oracle Database 26ai 64-bit on Oracle Linux 9 (OL8) 64-bit. The installation requires a m...