Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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 location with the highest precedence value (most preferred) for configuration options is:

  • Environment Variable (Ans)
  • It’s the first loaded configuration file.
  • ansible.cfg in current directory
  • .ansible.cfg in user home directory

What variable type describes the remote host’s system data?

  • Fact Data Variable (Ans)
  • Dynamic Variable
  • Host Variable
  • Python Data Variable

Which of the following transport protocols allows communications for Ansible?

  • RDP
  • SSH (Ans)
  • Telnet
  • RSH

If a host fails a task, it will continue executing the plays.

  • False (Ans)
  • True

Which component defines the hosts for Ansible to communicate to?

  • Configuration
  • Inventory (Ans)
  • Playbook
  • Modules

Which binary executable installs Ansible Galaxy roles?

  • ansible-galaxy (Ans)
  • ansible
  • ansible-playbook
  • ansible-role

If Group1 had: host1, host2, and host3 AND Group2 had: host2, host3, and host6, then the following target pattern would target which hosts?

  • host1 and host6
  • host2 and host3 (Ans)
  • Only Group2 hosts
  • All hosts in Group1 and Group2

Which of the following functions does Ansible provide?

  • Storage management
  • Change management (Ans)
  • Authentication
  • Certification

A play maps __ to a set of tasks.

  • hosts (Ans)
  • a playbook
  • YAML
  • variables

When building roles, which of the following is how Ansible learns of your files?

  • Ansible Configuration
  • Playbooks
  • YAML file that defines all the locations
  • Defined directory structure (Ans)

Handlers will execute tasks, but only __.

  • if the task fails
  • when it’s been notified more than once
  • if the host allows it
  • if the task notifies it (Ans)

What’s the name of the clause to use when choosing whether to run a task?

  • When (Ans)
  • If
  • Where
  • While

Which execution type is the default?

  • Process
  • Cloud
  • Local
  • Remote (Ans)

Which file is meant to be a playbook for your entire infrastructure?

  • ansible.cfg
  • site.yaml (Ans)
  • main.yaml
  • root.yaml

The command “ansible-doc” requires an internet connection to lookup module references.

  • True
  • Only if there is a valid internet connection
  • False (Ans)

You can define variables in separate files outside of the inventory file.

  • Only when you use the INCLUDE statement
  • True (Ans)
  • False

What is the minimum Python version for Ansible Control Server?

  • Python 3.0
  • Python 2.4
  • Python 2.5
  • Python 2.6 (Ans)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Ansible Tower Install and Setup Quick Guide

To install Red Hat Ansible Tower 3.8.6 (using ansible-tower-setup-3.8.6-2.tar.gz), your environment must meet a set of hardware, software, and system prerequisites. Below are the summarized requirements specific to this Tower…

Read More

Ansible: How to use template in Ansible using Jinja2?

Here’s a comprehensive tutorial on Ansible Templates and Jinja2, suitable for engineers or anyone preparing for an advanced Ansible role. 1. What are Ansible Templates? Ansible templates…

Read More

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…

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…

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…

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…

Read More