Articles by Deepak Prasad
Working with different Ansible operators
Different ansible operators are arithmetic, logical, comparison and test operator which we can use with ansible playbook.
Writing Ansible playbook with Visual Studio Code
We can also use virtual studio code editor to write ansible playbooks by using the ansible extension and configuring settings.json. You can use Windows or Linux …
Getting started with Ansible
What is Ansible? Ansible is an open source tool (with enterprise editions available) developed using Python and runs on Windows, Mac, and UNIX-like systems.
A complete guide to write your first Ansible Playbook
Ansible playbooks are rrdered lists of tasks, saved so you can run those tasks in that order repeatedly. Playbooks can include variables as well as tasks.
Beginners guide to YAML Syntax in Ansible Playbooks
YAML uses indentation (like Python), which builds the relationship of items with one another and In Ansible, nearly every YAML file starts with a list.
How to use different Ansible variables with examples
There are different types of ansible variables such as built-in, host, group, inventory etc. There is a different procedure to access individual ansible …
Working with Ansible facts | Create custom facts with examples
Ansible facts is a term used for system information of the managed nodes. By default ansible playbook will gather facts from the managed nodes using setup …
How to use Jinja2 templates in Ansible with examples
Jinja2 is a very popular and powerful Python-based template engine. Jinja2 templates is widely used in Ansible playbook to access variables, configuration etc
Working with managed nodes with password (not passphrase)
We can also use password instead of passphrase to connect with controller to managed nodes using --ask-pass. By default ansible will not prompt for any …
How to use Ansible managed nodes without Python
How to use ansible without installing python3 on managed nodes. Can we use ansible without python? How to use raw module in Ansible?
Ansible Inventory files (static vs dynamic) with examples
Learn about different types of ansible inventory files, static, dynamic, create custom dynamic inventory script, groups and variables in inventory with examples …
Pre-requisites to setup Ansible
To configure ansible we need certain pre-requisites. For example control node cannot be a windows node, We need SSH access on the managed node and python3 must …
Learn ansible.cfg Best Practices: Avoid Common Mistakes
We will explore ansible.cfg configuration file used in Ansible. This file can be located at different location while the highest precedence is given to …
Master the Power of Ansible Ad Hoc Commands [Tutorial]
Dive deep into the world of Ansible Ad Hoc Commands. Discover their unmatched power and versatility, and learn how to leverage them effectively for your …
How to configure Ansible on controller and managed node
Step by step instructions to configure ansible on RHEL/CentOS 8. Since ansible is agentless we don't need any configuration on managed nodes.
