gr8alex / ansible_studies

EX294 Preparation and General Ansible Studies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EX294 Preparation and General Ansible Studies

Lab Setup

Note: I configured 5 servers for labs:

  • 10 Centos 8 Servers
  • 1 Ubuntu 20.04 Server
  1. Server1 8GB, IPA Server to have enterprise services such as Kerberos, DNS, MAIL, FTP, HTTPS, etc., (ipaserver.rhce.lab).
  2. Server2 8GB, Ansible Control Node (control-node.rhce.lab).
  3. Server3 2GB, Ansible Node1 (node1.rhce.lab).
  4. Server4 2GB, Ansible Node2 (node2.rhce.lab).
  5. Server5 2GB, Ansible Node3 (node3.rhce.lab).
  6. Server6 4GB, Ansible Node4 (mail.rhce.lab).
  7. Server7 4GB, Ansible Node5 (db01.rhce.lab).
  8. Server8 4GB, Ansible Node6 (db02.rhce.lab).
  9. Server9 2GB, Ansible Node7 (web01.rhce.lab).
  10. Server10 2GB, Ansible Node8 (web02.rhce.lab).
  11. Server11, 8GB, Ansible Node9 (pulp.rhce.lab).

Partition Scheme

  1. 100Gb VHD on rootvg
  • 2GB /boot xfs
  • 10GB /home xfs
  • 25GB / xfs (root)
  • 40GB /var xfs
  • 6GB swap
  • 14GB free space

IP Address Space in VBOX

  1. Private Host IP Range on the 10.0.3.0/24 subnet - rhce.lab (namespace).
  2. I have enabled port-forwarding for NAT for 10.0.3.10 as my Bastion server interface.
  • IPA Server 10.0.3.2/24
  • Ansible Control Node 10.0.3.10/24
  • Ubuntu 20.04 - Node1 10.0.3.11/24
  • Centos 8 - Node2 10.0.3.12/24
  • Centos 8 - Node3 10.0.3.13/24

EX294 Objectives

As an RHCE exam candidate, you should be able to handle all responsibilities expected of a Red Hat Certified System Administrator, including these tasks:

Be able to perform all tasks expected of a Red Hat Certified System Administrator

  • Understand and use essential tools
  • Operate running systems
  • Configure local storage
  • Create and configure file systems
  • Deploy, configure, and maintain systems
  • Manage users and groups
  • Manage security

Understand core components of Ansible

  • Inventories
  • Modules
  • Variables
  • Facts
  • Plays
  • Playbooks
  • Configuration files
  • Use provided documentation to look up specific information about Ansible modules and commands

Install and configure an Ansible control node

  • Install required packages
  • Create a static host inventory file
  • Create a configuration file
  • Create and use static inventories to define groups of hosts
  • Manage parallelism

Configure Ansible managed nodes

  • Create and distribute SSH keys to managed nodes
  • Configure privilege escalation on managed nodes
  • Validate a working configuration using ad hoc Ansible commands

Script administration tasks

  • Create simple shell scripts
  • Create simple shell scripts that run ad hoc Ansible commands

Create Ansible plays and playbooks

  • Know how to work with commonly used Ansible modules
  • Use variables to retrieve the results of running a command
  • Use conditionals to control play execution
  • Configure error handling
  • Create playbooks to configure systems to a specified state

Use Ansible modules for system administration tasks that work with:

  • Software packages and repositories
  • Services
  • Firewall rules
  • File systems
  • Storage devices
  • File content
  • Archiving
  • Scheduled tasks
  • Security
  • Users and groups

Work with roles

  • Create roles
  • Download roles from an Ansible Galaxy and use them

Use advanced Ansible features

  • Create and use templates to create customized configuration files
  • Use Ansible Vault in playbooks to protect sensitive data
  • Create and use templates to create customized configuration files
  • Work with Ansible variables and facts
  • Create and work with roles
  • Download roles from an Ansible Galaxy and use them Manage parallelism
  • Use Ansible Vault in playbooks to protect sensitive data
  • Use provided documentation to look up specific information about Ansible modules and commands

As with all Red Hat performance-based exams, configurations must persist after reboot without intervention.

About

EX294 Preparation and General Ansible Studies


Languages

Language:Python 99.3%Language:Jinja 0.3%Language:Shell 0.3%Language:HCL 0.1%Language:DIGITAL Command Language 0.0%Language:Makefile 0.0%Language:Ruby 0.0%Language:Dockerfile 0.0%Language:Vim Script 0.0%Language:HTML 0.0%