Ansible: Structure of a playbook?

The structure of an Ansible playbook includes the following elements: When including a playbook in another playbook, it is important to structure the playbooks in a way that makes it easy to understand the flow of tasks and the relationships between playbooks. This can be achieved by organizing tasks into roles, grouping related playbooks together, […]

Python: Using flask

Building a simple hello world using Flask. (The code is available here) What is Flask and why use it? Flask is a lightweight web framework for Python, but there are certain cases when you may want to consider using an alternative. Here are some of the cases when you might not want to use Flask: […]

Ansible: Refresher

What is Ansible? Ansible is an open-source software platform for automating and configuring computer systems. It allows you to manage, deploy and orchestrate applications, infrastructure, and network devices using a simple, human-readable language. Ansible uses a push-based architecture, where tasks are executed on remote hosts from a central control machine, and does not require agents […]

Python: `argparse`

The argparse module is a powerful tool for parsing command line arguments in Python. It provides an easy way to define the arguments required by your script and handle the input data passed to your script by the user. Here are some best practices to properly use the argparse module: Example In conclusion, the argparse […]