Monday, April 17, 2023

How to get public IP from AWS EC2 instance ?

 


Use Below command 


login as root 



curl http://checkip.amazonaws.com



[root@ip-173-11-11-11 ~]#

[root@ip-173-11-11-11~]# curl http://checkip.amazonaws.com

55.2232.1123.123341

[root@ip-173-11-11-11 ~]#

About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

Saturday, April 15, 2023

How to check Ansible version ?

check version of Ansible on Linux  


[root@ip-0.0.0.0 project1]#

[root@ip-0.0.0.0 project1]# ansible --version

ansible 2.9.27

  config file = /etc/ansible/ansible.cfg

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

  ansible python module location = /usr/lib/python3.6/site-packages/ansible

  executable location = /usr/bin/ansible

  python version = 3.6.8 (default, Jan 11 2023, 08:43:50) [GCC 8.5.0 20210514 (Red Hat 8.5.0-16)]

[root@ip-0.0.0.0 project1]#

[root@ip-0.0.0.0 project1]#

About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

How to install Ansible on Linux ?

Install Ansible on Linux OS


=> Login as root user 


[root@ip-0.0.0.0 ~]#

[root@ip-0.0.0.0 ~]# yum install ansible

Updating Subscription Management repositories.

Unable to read consumer identity


This system is not registered with an entitlement server. You can use subscription-manager to register.


Last metadata expiration check: 2:49:39 ago on Fri 14 Apr 2023 07:03:14 AM UTC.

Dependencies resolved.

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

 Package                     Architecture      Version                    Repository                                 Size

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

Installing:

 ansible                     noarch            2.9.27-1.el8ae             ansible-2-for-rhel-8-rhui-rpms             17 M

Installing dependencies:

 sshpass                     x86_64            1.09-4.el8                 rhel-8-appstream-rhui-rpms                 30 k

Installing weak dependencies:

 python3-jmespath            noarch            0.9.0-11.el8               rhel-8-appstream-rhui-rpms                 45 k


Transaction Summary

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

Install  3 Packages


Total download size: 17 M

Installed size: 96 M

Is this ok [y/N]: y

Downloading Packages:

(1/3): python3-jmespath-0.9.0-11.el8.noarch.rpm                                           825 kB/s |  45 kB     00:00

(2/3): sshpass-1.09-4.el8.x86_64.rpm                                                      526 kB/s |  30 kB     00:00

(3/3): ansible-2.9.27-1.el8ae.noarch.rpm                                                   52 MB/s |  17 MB     00:00

--------------------------------------------------------------------------------------------------------------------------

Total                                                                                      44 MB/s |  17 MB     00:00

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                  1/1

  Installing       : sshpass-1.09-4.el8.x86_64                                                                        1/3

  Installing       : python3-jmespath-0.9.0-11.el8.noarch                                                             2/3

  Installing       : ansible-2.9.27-1.el8ae.noarch                                                                    3/3

  Running scriptlet: ansible-2.9.27-1.el8ae.noarch                                                                    3/3

  Verifying        : python3-jmespath-0.9.0-11.el8.noarch                                                             1/3

  Verifying        : sshpass-1.09-4.el8.x86_64                                                                        2/3

  Verifying        : ansible-2.9.27-1.el8ae.noarch                                                                    3/3

Installed products updated.


Installed:

  ansible-2.9.27-1.el8ae.noarch          python3-jmespath-0.9.0-11.el8.noarch          sshpass-1.09-4.el8.x86_64


Complete!

[root@ip-0.0.0.0 ~]#


About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

Oracle Database Deep Health Check Checklist

Oracle Database Deep Health Check Checklist Recommended assessment levels Level Purpose Typical scope L1 Operational health Availability, sp...