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. Format vars_files: directive…

Read more »

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. Step 1 –…

Read more »

Calling Ansible handlers based on OS distributions

Read more »

Anatomy of Ansible play defined!

A Play performs one or more Tasks against one or more Managed Nodes. Each playbook is composed of one or more ‘plays’ in a list. A play map a group…

Read more »

Login to linux ansible remote server enabled with LDAP using SSH?

Here is the scnario which we tried last week with Pranav Goel in order to login the Ansible remote server which is enlabe with LDAP and become a su to…

Read more »

Ansible Role Project 1

Step 1 – Create a role which has following specification. Install a webserver httpd # use role/vars/ Add cond…httpd should be done only if RHEL. Copy a index.j2 into /var/www/html…

Read more »

Ansible Tower Administration Guide

Ansible Tower Support – If you have paid membership, you can contact the support team at https://access.redhat.com How to understand Ansible Tower Subscription Types Self-Support Enterprise: Standard Enterprise: Premium https://docs.ansible.com/ansible-tower/latest/html/administration/license-support.html#subscription-types…

Read more »

Ansible Variable Lab & Excercise – Part 2

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 and setup a…

Read more »

Ansible Variable Lab & Excercise – Part 1

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 a webserver(httpd) and…

Read more »

How to access Ansible remote machine using SSH user and key?

How to access Ansible remote machine using SSH user and key? There are following ways, you can autheticte linux remote server using Ansible. Method 1 – Password Less authentication SSH…

Read more »

Ansible execution connection type

Ansible executes playbooks in the remote server using following connection type. To change the connection type, you need to pass host-specific parameter ansible_connection=<connector>, the connection type can be changed. SSH…

Read more »

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 tasks: – name:…

Read more »

Ansible & Ansible Tower Variable Precedence Hierarchy

Ansible & Ansible Tower Variable Precedence Hierarchy (last listed wins)

Read more »

How to use template in Ansible?

How to use template in Ansible? ##### Step 1 – Create your inventory file with ##### [code]$ vi inventory 35.154.85.120 ansible_user=root ansible_ssh_private_key_file=remote.pem 35.154.85.120 ansible_user=root ansible_ssh_private_key_file=remote.pem[/code] ##### Step 2 – Create…

Read more »

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_connection=local is defined…

Read more »

Ansible Playbook Lab & Excercise – Part 2

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 of group called…

Read more »

Ansible Adhoc Commands Lab & Excercise – Part 1

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy How to verify? $ more /etc/group | grep deploy Program 2 – Write a Ansible Adhoc…

Read more »
server-configuration-management-tools-chef-puppet-and-ansible

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 independent (i.e. instead…

Read more »

Top 5 Open Source Release Management Tools | List of Best Release Management Tools

Introduction Release management tools help teams plan and manage the handover of code, changes, and customizations from the application team through packaging and deployment across testing environments on the operations…

Read more »
top-5-configuration-management-tools

Top 5 Configuration Management Tools

Top 5 Configuration Management Tools Puppet In computing, Puppet is an open-source configuration management utility. It runs on many Unix-like systems as well as on Microsoft Windows, and includes its…

Read more »