Posts

Showing posts from May, 2025

Ansible Jinja2 Templates: A Complete Guide with Examples

Image
Here I'm starting this post with famous ARISTOTLE quote. "We are what we repeatedly do. Excellence, then is not an act, but a Habit" Welcome back Ansible Automations and who are habituated as Ansible automation specialists this post for them to give boosted walk through, In this post, I would like to share my experiments with Jinja2 templates usage on the Ansible playbook. Of-course Jinja is from Japan it is world famous for templatization capabilities badvanced Ansible templating techniquesy integrating with multiple languages such as Python, Ruby, Salt talk etc. In this post we will be cover the following topics: What is Jinja2 template do in Ansible? Template with filters Template with Lists and sets Template module in Ansible Template with Flow Control Template using Looping Template inheritance** What is Jinja2 template do in Ansible? Jinja2 is another Python library created for Flask web framework, that comes part of Ansible installation. It is special ability as i...

Container Security : Snyk

Image
 Hello DevSecOps experts, In this post we will discuss about how we can ensue container security scan.  Snyk  is one of the container scan tool option, we can sign up with GitHub or google account. Snyk will operates in three different ways: Snyk Web UI Snyk CLI Snyk Broker Heer we will experiment with Snyk CLI we can download from GitHub, as per your platform you can choose it. I'm going to work Preferrable option is to install the latest stable version  of NodeJS, verify the version of Snyk/cli .  curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash - apt install -y nodejs # Install NodeJS as per current stable version available node -v # Validate nodeJS installed npm -v # Validate npm installated npm install -g snyk # installing snyk snyk --version # Validate snyk installed When you run the above set of commands you will see the following output: snyk installation using npm package manager Ignore the npm warn lines which ...