Skip to content

Expert · Certifications and career · topic 55 of 57 · 25 min

RHCE (EX294): automation with Ansible

Explanation

RHCE (Red Hat Certified Engineer) on current RHEL versions is earned by passing EX294, a hands-on exam about automating RHEL administration with Ansible, while holding a current RHCSA. You write inventories, playbooks, roles, templates and vault files that must work when the graders run them. Modules 9 and 10 of this course cover it; check the official page for current objectives.

What changed about RHCE

Years ago RHCE meant advanced manual administration. Today it is about automation: the exam expects you to do RHCSA-level tasks, and more, with Ansible across several managed nodes. This matches how real teams work. Red Hat requires a current RHCSA to hold RHCE, so most people take EX200 first and then EX294.

What the exam covers (broadly)

AreaWhere in this course
Install and configure an Ansible control node; inventories; ansible.cfgModule 9
Prepare managed nodes: SSH keys, privilege escalationModule 9
Ad-hoc commands and the core modulesModule 9
Playbooks, variables, facts, loops, conditions, handlers, error handlingModules 9, 10
Jinja2 templatesModule 10
Roles and collections, Ansible Galaxy, RHEL System RolesModule 10
Ansible VaultModule 10
Using automation to do admin tasks: packages, services, firewall, storage, users, SELinux, scheduled jobsModules 2 to 7 via Ansible
Careful: The tool you are expected to use (ansible-playbook or ansible-navigator), the RHEL and Ansible versions, and the exact objectives depend on the exam version. Read the current RHCE page and the exam objectives before you study, and practise with the same tools.

How it feels on the day

  • You get a control node and several managed nodes. Some tasks name a file the graders will run, such as /home/student/ansible/users.yml.
  • Your playbooks are checked by running them and by checking the managed nodes. They must be idempotent and must not fail.
  • No internet. ansible-doc and the files under /usr/share/doc (including RHEL System Roles examples) are your references.

Building an RHCE practice lab

You need at least three machines: one control node and two or more managed nodes. On a laptop with 16 GB of RAM, four small VMs (1 to 2 GB each) work well. Give the managed nodes an extra disk each, so you can practise storage tasks through Ansible. Set up the control node once by hand (ansible-core, a project folder, ansible.cfg, inventory, an SSH key), then write a playbook that prepares managed nodes (user, key, sudo) so you can rebuild the whole lab from scratch in minutes. Rebuilding often is itself good practice.

A study plan for RHCE

  1. Week 1: control node, inventory, ansible.cfg, ad-hoc commands for every core module. Do every RHCSA task once as an ad-hoc command.
  2. Week 2: playbooks with variables, facts, loops, when, handlers and block/rescue. Turn each RHCSA practice task into a playbook.
  3. Week 3: templates (especially an /etc/hosts template from facts), roles with ansible-galaxy, requirements files, RHEL System Roles (timesync, selinux, storage).
  4. Week 4: vault, a full timed practice exam, and fixing the weak spots.

Common mistakes

  • Writing playbooks that use shell for everything: they are not idempotent and often fail on the second run that graders may do.
  • Leaving the vault password file or the playbook in a different path than the task asked for.
  • Not running the finished playbooks one more time at the end to prove they still pass.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

RHCE (EX294): automation with Ansible · 1/6

RHCE = EX294 = Ansible

RHCE today is about automation with Ansible. The exam code is EX294.

Prefer a video by a teacher? Find free videos on “rhce ex294 ansible exam preparation tips” on YouTube ↗

In real life: From admin to automation engineer at a Hyderabad bank

Karthik, an RHCSA-certified admin at a bank's IT centre in Hyderabad, spent his evenings automating his own team's weekly checklist with Ansible. After passing RHCE, he showed his manager that patching 200 servers now took a morning instead of a week. He moved into the bank's new automation team, and his playbooks became the team's starting point.

Practice (0/2 done)

Task 1 · Question

Which certification must you hold for RHCE to be valid?

Task 2 · Practice

Take five tasks from your RHCSA practice exam and solve each with a playbook on two managed nodes. Run each playbook twice; the second run must show changed=0 and failed=0.

Quick quiz

Question 1

1.Which exam code is associated with RHCE on current RHEL versions?

Question 2

2.Why are idempotent playbooks important in the RHCE exam?

Question 3

3.Where can you find RHEL System Roles examples during the exam?

Read more (free)

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

Which exam code is associated with RHCE on current RHEL versions?

Answer: EX294

EX294.

Why are idempotent playbooks important in the RHCE exam?

Answer: Graders run your playbooks and a second run must not fail or break things

Real automation must be safe to re-run.

Where can you find RHEL System Roles examples during the exam?

Answer: /usr/share/doc/rhel-system-roles/

Installed with the package.

Which exam code gives the RHCSA certification?Related
Where are example playbooks for system roles on RHEL?Related

Answer: /usr/share/doc/rhel-system-roles/

Each role has examples and a README there.

From RHEL System Roles and Ansible Vault

Which package gives you ansible-playbook on RHEL 9?Related

Answer: ansible-core

ansible-core.

From What Ansible is and how it works

What is a collection in Ansible?Related

Answer: A package of modules, roles and plugins under a namespace, like community.general

Collections are how modules are packaged and shared, for example through Galaxy.

From Roles, templates, Galaxy and Vault

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 2 more topics in “Certifications and career” before its exam: Exam strategy and lab habits, Careers, salaries in India and your next steps.
  2. Module 11 exam: Certifications and career · 11 questions · 15 min, without help. 4 topics of this module still to finish first.
  3. 57 topics left in the course before the final exam.

← Previous: RHCSA (EX200): what it is and how to prepare