scripting

Posts related to scripting, mainly using shell scripts.

How to use callback plugins in ansible

Ansible is highly configurable and extendable for users. This post will show us how to use the callback plugins(shipped with ansible) to extend the playbooks. Ansible ships with many great callback plugins, a majority of these plugins are to control the output format of the playbook or to generate some sort of notification. Some examples …

How to use callback plugins in ansible Read More »

Why not use the script module in ansible?

In most cases, ansible inbuilt modules are enough to do the job. However, in some cases, it’s either highly complex or impossible to achieve the goal using ansible inbuilt modules. In such cases, many users write their scripts(Eg: bash or python,Etc.), which is fine for most cases. However, there are some downsides to using scripts. …

Why not use the script module in ansible? Read More »

Create a Virtual Machine with cloud-init using libvert(Automated)

In this post, we will see an automated approach to creating a guest VM with cloud-init using libvert/virt-install. In the Previous post described here, we have seen the manual procedure. Now, we will use a shell script wrapper to do the same for our convenience. For your convenience, the script is loaded with comments, so …

Create a Virtual Machine with cloud-init using libvert(Automated) Read More »

Create Virtual Machines using virt-install(libvert) with cloud-init

This post will demonstrate creating a high-performance guest VM with cloud-init using virt-install. The Qemu/libvert/KVM stack is currently the best bet to get the near-native performance from the virtual machines. When combined with cloud-init, the stack gets more empowered and highly convenient to set up virtual machines. This is especially helpful if you require creating …

Create Virtual Machines using virt-install(libvert) with cloud-init Read More »

Scroll to Top