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...

Is my server physical or virtual?

Am I real or virtual? That is the question! That's the realm of philosophy and adhyatma.

When and if I put this question to my server, it becomes technical and here's the answer.

On Linux

# dmidecode | more

or

dmidecode -s system-manufacturer


Sample Output

# dmidecode | more
# dmidecode 2.9
SMBIOS 2.4 present.
364 structures occupying 17030 bytes.
Table at 0x000E0010.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: Phoenix Technologies LTD
        Version: 6.00
        Release Date: 04/14/2014
        Address: 0xEA050
        Runtime Size: 90032 bytes
        ROM Size: 64 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PC Card (PCMCIA) is supported
                PNP is supported
                APM is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                Smart battery is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported
                Targeted content distribution is supported
        BIOS Revision: 4.6
        Firmware Revision: 0.0

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: VMware, Inc.
        Product Name: VMware Virtual Platform
        Version: None
        Serial Number: VMware-xx xx xx c4 2a d5 cb 7d-e8 xx xx xx xx xx xx xx
        UUID: 4233XXXX-XADX-XB7X-X8CX-XXXXE096XXXX
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: Not Specified

# dmidecode -s system-manufacturer
VMware, Inc.


On Windows:

SYSTEMINFO command on the command prompt should do the trick:

START ==> RUN ==> cmd (open command prompt)

Sample Output

C:\Users\TEMP>systeminfo

Host Name:                 **********
OS Name:                   Microsoft Windows Server 2008 R2 Enterprise
OS Version:                6.1.7601 Service Pack 1 Build 7601
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Server
OS Build Type:             Multiprocessor Free
Registered Owner:          **********
Registered Organization:   **********
Product ID:                ********************
Original Install Date:     12/23/2013, 2:07:40 PM
System Boot Time:          5/6/2015, 10:50:07 AM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               x64-based PC

Voila! There you go.

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