Ansible Windows Playbook Lab & Excercise – Part 8
Write a playbook to Create a dir, named with your-name inside C:\HPE and create a file named with “readme.txt” inside “C:\HPE\ and content of the file should…
Ansible Include and Import with differences explanined!
This is one of the most frequest questions being asked in my workshop is that differences between using import or include in Ansible. For example import_role or…
Understanding Ansible Architecture using diagram
What is Ansible? Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices….
Order of operations during Ansible playbook parsing explained!
We will delve into some specifics of how a playbook is parsed for Order of operations. Ansible can be assumed to be executed in a top to…
Ansible Variable: How can I pass variable to ansible playbook in the command line?
It is possible to set variables at the command line using the –extra-vars (or -e) argument. Variables can be defined using a single quoted string (containing one…
How to specifying multiple groups in a playbook hosts specification?
By design, Ansible executes just one play at a time. Your playbook consists of two plays (the two items in the root-level YAML list defined by the…
Difference between ansible vars_files vs include_vars
Both of them have some commonalities but they solve different purposes. vars_files are read when the play starts. include_vars are read when the play reaches the task….
Working with Azure using Ansible
Ansible includes a suite of modules for interacting with “Azure Resource Manager”, giving you the tools to easily create and orchestrate infrastructure on the Microsoft Azure Cloud….
Calling Ansible handlers based on OS distributions
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
Reboot and wait for reboot to complete in Ansible playbook
Reference – https://blog.confirm.ch/calling-ansible-handlers-based-on-os-distributions/ Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices….
Ansible Variable Lab & Excercise – Part 6
Assigment 1 – Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in role var file Assigment 2 – Create a playbook…
Ansible Variable Lab & Excercise – Part 5
Assigment 1 – Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in inventory. Assigment 2 – Create a playbook and setup…
Use of runtime variables to save into another variable using register in Ansible
Another major use of variables is running a command and using the result of that command to save the result into a variable – hosts: all…
Ansible Variable: Ansible & Ansible Tower Variable Precedence Hierarchy
When the same variable is defined in more than one place, Ansible uses a fixed precedence order and the source listed last wins. Extra vars passed with…
Run Ansible Adhoc commands or playbook in Local mode
If you are trying to run Ansible Adhoc commands or playbook in Local mode, these articles will help you. Ansible can’t run playbooks locally without ssh if…
Ansible Playbook Lab & Excercise – Part 4
Execution Mode – Remote Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create a user called “deploy-user” which is part…
Top Interview Questions on Server Configuration Management Tools Chef, Puppet, and Ansible
Source – http://hub.scalr.com/blog/top-questions-on-server-configuration-management-tools-chef-puppet-and-ansible-2 As a quick recap, configuration management tools enable companies to standardize and automate their infrastructure. Through standardization, you can build systems that are platform…
