Articles by Deepak Prasad
10+ examples on python sort() and sorted() function
We can use sort() or sorted() in-built function to perform python sorting for different data types such as list, tuples, dictionaries, list of dictionaries with …
10+ simple examples to use Python string format in detail
There are three different style of python string formatting, % formatting, string.format() and f-strings. Add padding, whitespace, truncate texts, change …
15+ simple examples to learn Python list in detail
A list is a data structure in Python that is a mutable, ordered sequence of elements. lists are defined by having different data types between square brackets [ …
10+ simple examples to learn python tuple in detail
Python tuples are collection of comma-separated values. It is identical to a list, except it is immutable. Tuples are useful for storing information that you …
10+ simple examples to learn python sets in detail
Python sets are collections of unique and unordered items. It implements all the fundamental operations from set theory, like union, intersection, subset tests …
Python range() Function [In-Depth Tutorial]
Python range() function is a built-in function that generates a list of numbers. This list is mostly used to iterate over using a for loop.
Python dictionary (15 easy examples with syntax)
Python Dictionary are indexed using keys, which are usually strings. There are two kinds of dictionaries in Python: the default dict, which is unordered, and …
Python for loop (10 easy examples with syntax)
The Python for loop is also referred to as the for…in loop. This is due to its unique syntax that differs a bit from for loops in other languages. We use range, …
Ansible Tutorial for Beginners [RHCE EX294 Exam]
Free, hands-on Ansible tutorial for beginners that takes you from zero to RHCE EX294. Lab setup, playbooks, roles, vaults, AWS provisioning - 27 lessons across …
Working with include and import module in Ansible
We can use Ansible import module to add playbook, tasks from another file into a different playbook. This can help use the same set of tasks across multiple …
Ansible Block and Rescue Advanced Guide: Thank Me Later
We can use ansible block, rescue and always to perform different kinds of error handling where with the rescue block we can perform cleanup action
Ansible Tags: Your Shortcut to Smarter Automation
Explore the dynamic world of Ansible Tags to streamline your automation tasks. Our guide delves into the essentials of using tags in Ansible playbooks, offering …
How to repeat tasks using ansible loop with examples
Ansible loop is used to iterate over multiple tasks in playbook. It supersedes with_items in Ansible with later version as with_* are deprecated
Use Ansible Handlers Like a PRO: Don't be a Rookie
Handlers are tasks that only run when notified. Each handler should have a globally unique name. Ansible Handlers always run in the order they are defined, not …
Working with Ansible conditional statements
Control structures are mainly of the following two types Conditional & Iterative. We will cover when, failed_when, changed_when conditions in playbooks
