AWS using Ansible? Yes, it's possible!

  Although, I've used Ansible extensively for a lot of automation and orchestration tasks, using Ansible for AWS was indeed, a new territory for me.  This turned out to be a blessing, since along with using Ansible for AWS tasks, I also learnt how to use WSL (Windows Subsystem for Linux) on a Windows machine. Though WSL's been around for some time, I still hadn't come around to using it since I was mostly using my Macbook pro. Not anymore, though!  Anyway, I have listed below the steps to: Install WSL on Windows 11 23H2 patch Install AWS CLI on Ubuntu 22.04 (Exact version - 22.04.3 LTS) Install Ansible and the amazon.aws collection Use AWS CLI to get the list of  VPCs in the region - us-east-1 (or a region of your choice) Create a python file/script to get the list of VPCs in the region - us-east-1 (or a region of your choice) Create an Ansible playbook to get the list of VPCs in the region - us-east-1 (or a region of your choice.   You may download the comple...

Find OS Kernel Bit in UNIX - Ready reckoner

Listed below is the ready reckoner for finding out the kernel bit information for Linux, Solaris, HP-UX and IBM AIX, which are the most commonly used OS for Oracle Apps.

Linux

getconf LONG_BIT
or
uname -m (works for x86-64 bit servers. Not tested it in 32 bit servers)

eg:
$ getconf LONG_BIT
64
$ uname -m
x86_64
$


Sun SPARC Solaris

isainfo -kv

eg:
$ isainfo -kv
64-bit sparcv9 kernel modules
$

HP-UX

getconf KERNEL_BITS

eg:
$ getconf KERNEL_BITS
64
$

IBM AIX

bootinfo -K

Not tested as I currently do not have any AIX servers to test on!


Note 1: To find whether a given executable is 32-bit or 64-bit, use the command

file <executable_name>
eg:
$ file oracle
oracle: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file tnslsnr
tnslsnr: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file sqlplus
sqlplus: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped


Note 2: You can install a 32-bit executable on a 64-bit OS but not vice-versa.

Comments

Popular posts from this blog

Check if UTL_FILE and FND_FILE are working fine

Modify retention period of workflow queues

Clone database home (clone.pl) deprecated in Oracle 19c