MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

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 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 at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

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…

Read More

Understanding Ansible Architecture using diagram

What is Ansible? Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best…

Read More

Ansible Training Flow

This page walks through the Ansible training flow step by step. It starts with ad hoc commands, moves on to playbooks and finishes with roles. At each…

Read More

How Ansible Automates Cisco IOS and IOS XE Network Devices

Introduction Managing multiple Cisco routers and switches manually can become time-consuming as a network grows. Network engineers regularly configure interfaces, check device status, update settings, and troubleshoot…

Read More

Configuration Management in DevOps: Concepts, Tooling, and a Practical Workflow

This guide explains how configuration management works in modern DevOps teams, compares common tools, and shows a practical Ansible example. It also preserves the original SlideShare reference from the legacy post.

Read More

Ansible: step-by-step tutorial on Ansible Collections

Here’s a very detailed, step-by-step tutorial on Ansible Collections—covering what they are, why you need them, how to use them, how to create your own, and key…

Read More