Ansible Interview Questions and Answer – Part 8

You can merge multiple inventory files to scale out. True False (Ans) A __ module may be pulled from repository at a future time. Bronze Core Deprecated (Ans) Extra The…

Read more »

Ansible Interview Questions and Answer – Part 7

Task to connect(SSH) Ansible to remote host using another user & run the playbook to the remote host using with another user? What is Ansible vault? How to decrypt a…

Read more »

Ansible Interview Questions and Answer – Part 6

What is Ansible? What is Configuration Management? Is Ansible only a tool for Configuration Management? What are the components of Ansible? How Ansible works? What are the other tools in…

Read more »

Ansible Interview Questions and Answer – Part 5

How can you the fact varibales in ansible? can we create an ansible module ? 83 . How can you do provisioning with ansible? 84 . BASH Vs Python Vs…

Read more »

Ansible Interview Questions and Answer – Part 4

What is local action in Ansible? What are the roles in Ansible? Write a playbook for installation of apache in ubuntu and centos? How to create a role in ansible?…

Read more »

Ansible Interview Questions and Answer – Part 3

What are handlers used for in ansible and how is it diffrent from tasks? Conditional execution in ansible is used for what purpose and write down its syntax with small…

Read more »

Ansible Interview Questions and Answer – Part 2

What is the purpose and location of ansible.cfg file. Name any two settings from anible.cfg file. Please write below a sample inventory file with host, group & group of groups…

Read more »

Ansible Interview Questions and Answer – Part 1

What is inventory file used for and default inventory host location? What is ansible configuration file used for and its default path? Do you write your inventory file? How many…

Read more »

Ansible inventory in one remote machine using command-line

You can specify inventory file host path or comma separated host list. Except “localhost”, you can always specify a inventory using “-i INVENTORY” or –inventory=INVENTORY. Also, there are two default…

Read more »

How to pass http proxy to ansible using environment variables?

It is quite possible that you may need to get package updates through a proxy, or even get some package updates through a proxy and access other packages not through…

Read more »

Ansible Tower Install and Setup Quick Guide

Supported Operating Systems: Red Hat Enterprise Linux 6 64-bit Red Hat Enterprise Linux 7 64-bit CentOS 6 64-bit CentOS 7 64-bit Ubuntu 12.04 LTS 64-bit Ubuntu 14.04 LTS 64-bit Other…

Read more »

Ansible Playbook Lab & Excercise – Part 7

Create a playbook where you should install a webserver into 2 OS type(Ubuntu and RHEL) with fact conditioning. and list out a directory which in “/etc” and display such as…

Read more »

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 be “I love…

Read more »

Ansible Windows Adhoc Commands Lab & Excercise – Part 2

Write a Adhoc command 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 be “I…

Read more »
ansible-install-centos-rhel

How to install Ansible in Centos 7/RHEL 7?

How to install Ansible in Centos 7/RHEL 7? Install Ansible via Pip in RHEL/CENTOS

Read more »

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 include_role, what should…

Read more »

Understanding Ansible Architecture using diagram

What is Ansible?

Read more »

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 bottom order; that…

Read more »

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 or more variables)…

Read more »

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 playbook file). Method…

Read more »