RHCE study materials
RHCE study resources

RHCE key terms

RHCE · Get comfortable with the vocabulary.

Inventory

A file, in INI or YAML format, that lists the managed hosts Ansible can target, optionally grouped under labels so tasks can be addressed to whole sets of machines at once.

Related: Inventory Group, Host Pattern, ansible.cfg
Inventory Group

A named collection of hosts inside an inventory file, used to target plays or tasks at many machines together. Groups may contain child groups and can carry group-level variables.

Related: Inventory, Host Pattern, group_vars
Host Pattern

The expression given to a play or ad hoc command that selects which inventory hosts to act on, such as all, a group name, a single host, or a wildcard combination.

Related: Inventory, ad hoc command
ansible.cfg

The configuration file Ansible reads to set defaults such as inventory location, remote user, privilege escalation, log path, and plugin paths. Values are resolved in a defined precedence order of files and environment.

Related: Inventory, Ansible Configuration Precedence, Privilege Escalation
Ansible Configuration Precedence

The ordered rule set deciding which configuration value wins: environment variables, then the nearest ansible.cfg found, then the user home file, then the system-wide file, then built-in defaults.

Related: ansible.cfg, ANSIBLE_CONFIG
ANSIBLE_CONFIG

An environment variable that points Ansible at a specific configuration file, overriding the automatic search order and thereby taking the highest practical precedence among config sources.

Related: Ansible Configuration Precedence, ansible.cfg
Static Inventory

An inventory supplied as a plain text file that Ansible parses each run; it is manually maintained rather than generated from an external source such as a cloud provider.

Related: Inventory, Dynamic Inventory
Dynamic Inventory

An executable script or plugin that queries an external system at runtime and returns host and group data in JSON, so inventories stay current without manual editing.

Related: Static Inventory, Inventory Plugin
Ad Hoc Command

A single ansible invocation that runs one module against chosen hosts without writing a playbook, useful for quick checks, one-off changes, and testing connectivity.

Related: ansible Module, Host Pattern, ansible all -m ping
ansible Module

A reusable unit of work, such as copy, user, or service, that Ansible ships to a managed node and runs to make a specific change or gather information.

Related: Ad Hoc Command, Task
Idempotence

The property that running the same task repeatedly produces the same end state, reporting no change on later runs once the desired condition is already true.

Related: ansible Module, Handlers, changed_when
Playbook

A YAML file describing a sequence of plays that map inventories hosts to tasks, allowing repeatable multi-step automation that can be stored in version control.

Related: Play, Task, Role
Play

A top-level entry inside a playbook that binds a set of hosts to a list of tasks plus settings like variables, remote user, and privilege escalation.

Related: Playbook, Host Pattern, Task
Task

The smallest named step in a play, pairing one module with its arguments and optional keywords such as conditionals, loops, and handlers notification.

Related: ansible Module, Play, Handler
Handler

A task that only runs when notified by another task that reports a change, typically used to restart a service once even if several tasks touched its configuration.

Related: notify, Task, Idempotence
notify

A task keyword naming one or more handlers to trigger if that task results in a change, so follow-up actions run only when something actually changed.

Related: Handler, Idempotence
Role

A reusable, standardized directory structure holding tasks, handlers, defaults, variables, files, templates, and metadata, so related automation can be shared and applied repeatedly.

Related: roles_path, Variable Precedence, Playbook
roles_path

The configuration setting listing directories where Ansible searches for roles by name when a playbook references them, letting shared role libraries stay outside the project.

Related: Role, ansible.cfg
Variable Precedence

The documented ranking that decides which value wins when the same variable name is defined in several places, from low-precedence role defaults up to extra vars.

Related: extra vars, group_vars, host_vars
extra vars

Variables supplied with -e on the command line. They carry the highest precedence in Ansible, overriding every other variable source for that run.

Related: Variable Precedence, vars_files
group_vars

A directory or file convention where variables are stored for an inventory group; files named after the group apply automatically to every host that belongs to it.

Related: Inventory Group, host_vars, Variable Precedence
host_vars

A directory or file convention holding variables for a single inventory host, applied automatically and taking precedence over group-level variables for that host.

Related: group_vars, Variable Precedence
vars_files

A play keyword listing external YAML variable files to load for the play, keeping large or sensitive variable sets out of the playbook body itself.

Related: Variable Precedence, Extra vars
Facts

System information such as hostname, interfaces, memory, and distribution that Ansible collects from a managed node and exposes as prepopulated variables for use in plays.

Related: setup module, gather_facts, set_fact
gather_facts

A play keyword, true by default, that controls whether Ansible automatically collects system facts from each targeted host before running the play's tasks.

Related: Facts, setup module
setup module

The module Ansible runs behind the scenes to collect facts from a managed node; it can also be called directly through an ad hoc command.

Related: Facts, gather_facts
set_fact

A module that defines or overrides a variable during play execution, so a value computed from facts or earlier results can be reused by later tasks and plays.

Related: Facts, register
register

A task keyword that stores a task's result, including return values and change status, in a variable so later tasks can test or reuse that output.

Related: when, set_fact
when

A task keyword holding a condition that decides whether the task runs at all, evaluated per host using variables, facts, or registered results.

Related: register, loop, changed_when
loop

A task keyword that repeats the module once for each item in a supplied list, with the current item available as a variable inside the task arguments.

Related: when, Item Variable
Templates (Jinja2)

Files containing static text plus Jinja2 expressions that Ansible renders on the control node and then deploys, commonly used to generate configuration with per-host values.

Related: template module, Facts
template module

The module that renders a Jinja2 template file and copies the result to a managed host, changing the file only when the rendered content differs.

Related: Templates (Jinja2), Handler
SSH Connection Plugin

The default transport Ansible uses to reach Linux managed nodes, connecting as a chosen remote user and optionally using keys, agent forwarding, or password authentication.

Related: remote_user, Privilege Escalation
remote_user

The setting or play keyword naming the account Ansible authenticates as on a managed node before escalating privileges inside tasks.

Related: SSH Connection Plugin, Privilege Escalation
Privilege Escalation

The mechanism, usually via sudo, that lets a task run with root rights on the managed node even though Ansible connected as an ordinary user; controlled by become keywords.

Related: become, remote_user
become

The keyword or command-line flag that enables privilege escalation for a play, task, or ad hoc command, optionally paired with become_user and become_method settings.

Related: Privilege Escalation, ansible.cfg
ansible-inventory

A command-line utility that inspects an inventory and prints hosts, groups, or resolved variables in various formats, helpful for validating parsing and debugging group data.

Related: Inventory, ansible-doc
ansible-doc

A command-line tool that shows documentation for installed modules and plugins, including parameters, return values, and usage examples, without leaving the terminal.

Related: ansible Module, ansible-inventory
ansible-playbook

The command that executes a playbook, offering flags for syntax checking, dry runs with check mode, listing hosts or tasks, and overriding variables at run time.

Related: Playbook, check mode, syntax check