What is Ansible and use cases of Ansible?

What is Ansible? Ansible is an open-source automation tool used for configuration management, application deployment, and task automation. It simplifies complex IT tasks by automating them using a simple and…

Read more »

Ansible Tutorials: Calling one Play & Tasks from another play in Playbook

import_tasks module The Ansible import_tasks module is used to import a list of tasks from a file into the current playbook for subsequent execution. The name of the imported file…

Read more »

Ansible Tutorial: Anatomy of Ansible playbook defined!

host defines the target machines: one or more groups or host patterns, separated by colons that should match hosts in the inventory. all is a group that means all hosts…

Read more »

Complete Ansible Certification Guide & tutorials

What is Ansible? Ansible is an open-source tool which can automate the configuration of all the systems. With ansible a small team of system administrator can write simple code in…

Read more »

TOP 65+ INTERVIEW QUESTIONS FOR ANSIBLE

Ansible most asked FAQ’s and interview questions:- Q1) what is Ansible? Ansible is developed in Python language. It is a software tool. It is useful while deploying any application using…

Read more »
ansible-error

Ansible Connection Options for windows remote Server

Error – Failed to connect to the host via ssh Solution – You need to set ansible_connection=winrm to connect to windows [windows] 13.233.160.153 [windows:vars] ansible_connection=winrm Error – auth method ssl…

Read more »

Interview Questions & Answers for Ansible

Ansible Describe each of the following components in Ansible, including the relationship between them: Task Module Play Playbook Role How Ansible is different from other Automation tools? True or False?…

Read more »

How can we use Ansible and where?

Friends, First of all let’s know about Ansible is simple yet powerful. It is a great automation tool and does have great future. It is an open-source automation tool, or…

Read more »

Understanding Ansible playbook using diagram

Example Playbook Code

Read more »

Ansible Example of Multple Play in One Playbook and Multple Playbook in One Yaml files

Example of Multple Ansible Play in One Playbook Example of Multple Ansible Playbook in One Yaml file

Read more »

Ansible Variable: Understanding Ansible Register variable scope and use across playbook and hosts

Registered variables are similar to facts, with a few key differences. Like facts, registered variables are host-level variables. However, registered variables are only stored in memory. Register variables don’t survive…

Read more »

Shell Script to Install Ansible AWX in RHEL 7 and CENTOS 7

Read more »

Ansible Module Sample Code to Work for user data – Example 4

Read more »

Ansible Module Sample Code to Work using OS commands (curl) – Example 3

Read more »

Ansible Module Sample Code to Work using github API – Example 2

Read more »

Ansible Module Sample Code to Work with API – Example 1

Read more »

Ansible Interview Questions and Answer – Part 12

Which is the right repository definition should be inserted in pom.xml for uploading snapshot artifactory? Which is the right repository definition should be inserted in pom.xml for uploading release artifactory?…

Read more »

Ansible Interview Questions and Answer – Part 11

What is the best way to allow a Docker client running in a container access to the underlying Docker host? Map the root filesystem to the container. You shouldn’t do…

Read more »

Ansible Interview Questions and Answer – Part 10

How would you ensure your application is configured correctly for different types of tests? This is not possible. Create multiple configuration files for your application, one per type of test….

Read more »

Ansible Interview Questions and Answer – Part 9

You can add groups inside of groups when: You add existing group names under a [groupname:children] definition (Ans) You cannot add groups within groups. You add existing group names under…

Read more »

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 »