Monday, 28 August 2023

Automate Linux SysAdmin tasks with Ansible in 95+ examples - part 2


Ansible is a powerful open-source automation tool that allows you to manage and configure your infrastructure as code. Whether you're a beginner looking to install Ansible or an experienced user diving into advanced playbooks, this comprehensive guide has you covered. We'll walk you through various aspects of Ansible, from basic installations on different Linux distributions to executing complex automation tasks.



1. How to Install Ansible in Ubuntu 22.04 LTS

$ sudo apt update
$ sudo apt install ansible

Once installed, you can verify the installation:

$ ansible --version

Now, you're ready to use Ansible for automation tasks on your Ubuntu 22.04 system.

2. Ansible Ad-Hoc Commands: 

Example: Using the Ping Module and Retrieving Ansible Facts

$ ansible all -m ping

$ ansible all -m command -a "hostname"

$ ansible all -m setup

using the "ping" module, we executing commands, and retrieving Ansible facts from target node
Read more »

Labels: , ,

Wednesday, 16 August 2023

Creating a Simple Blog Application in Perl

 create simple blog application that allows users to create, read, update, and delete (CRUD) blog posts. The application uses the Perl Catalyst MVC framework, DBIx::Class ORM for interacting with the database, and provides both REST and GraphQL APIs for accessing the data. The database can be  PostgreSQL.

Read more »

Labels: