Learn Ansible Automation In 240+ Examples And Practical Lessons Part 1

Learn Ansible with some real-life examples of how to use the most common modules and Ansible Playbook. Read more.

No ratings yet
Course Skill Level
Intermediate
Time Estimate
18h 13m

Luca Berton is an Ansible Automation Engineer of Red Hat, based in Brno - Czech Republic. With more than 15 years of experience as a System Administrator, he has strong expertise in Infrastructure Hardening and Automation. Enthusiast of the Open Source supports the community by sharing his knowledge in different public access events—geek by nature, Linux by choice, Fedora, of course.

Access all courses in our library for only $9/month with All Access Pass

Get Started with All Access PassBuy Only This Course

About This Course

Who this course is for:

  • System Administrator
  • IT Professional
  • Cloud Engineer
  • DevOps
  • Linux Engineer
  • Automation Engineer

What you’ll learn: 

  • Ansible in real life use cases
  • Ansible troubleshooting of most common errors
  • Install Ansible in the most common operating system
  • Ansible code by modules
  • Ansible code specific for RedHat-like and Debian-like systems

Requirements: 

  • Ansible basic knowledge

Learn the Ansible automation technology with some real-life examples.

Every successful IT department needs automation for bare metal servers, virtual machines, cloud, containers, and edge computing. Automate your IT journey with Ansible automation technology.

I’m going to teach you, example by example, how to accomplish the most common System Administrator tasks.

You will start with installing Ansible in RedHat Enterprise Linux, Ubuntu, and macOS using the most command package manager and archives.

Each of the 240+ lessons summarizes a module: from the most critical parameter to some live demo of code and real-life usage. Each code is battle proven in real life. Every video includes terminal interaction and verification steps. Mundane activities like creating a text file, extracting and archiving, and fetching a repository using HTTPS or SSH connections could be automated with some lines, user management, and interaction with API services; these are only some of the long lists included in the course.

Some Ansible codes are usable in all the Linux systems, some specific for RedHat-like, Debian-like, and Windows systems.

The 30+ Ansible troubleshooting lesson teaches you how to read the error message, reproduce it, and the process of troubleshooting and resolution.

Note: This is Part 1 of a 2-part course.

Our Promise to You

By the end of this course, you will have learned how to automate using Ansible.

10 Day Money Back Guarantee. If you are unsatisfied for any reason, simply contact us and we’ll give you a full refund. No questions asked.

Get started today!

Course Curriculum

Section 1 - Introduction
Introduction 00:00:00
Ansible Ad-Hoc Command - Ansible Command 00:00:00
Ansible Terminology - What Is An Ansible Playbook? 00:00:00
Section 2 - Install Ansible
Ansible Terminology - Ansible Vs Ansible-Core Packages 00:00:00
How To Install Ansible In RedHat Enterprise Linux 8 00:00:00
How To Install Ansible In Amazon Linux 2 (AWS EC2) 00:00:00
How To Install Ansible In Fedora 34 00:00:00
How To Install Ansible In Ubuntu 20.04 LTS 00:00:00
How To Install Ansible In Ubuntu 21.10 00:00:00
How To Install Ansible In Ubuntu 22.04 LTS 00:00:00
How To Install Ansible In Fedora 35 00:00:00
How To Install Ansible In CentOS 8 00:00:00
How To Install Ansible In CentOS Stream 8 00:00:00
How To Install Ansible In CentOS 9 Stream 00:00:00
How To Install Ansible In Debian 11 00:00:00
How To Install Ansible In OpenSUSE Leap 15 00:00:00
How To Install Ansible In Rocky Linux 8 00:00:00
How To Install Ansible In macOS 00:00:00
How To Install Ansible With PIP 00:00:00
How To Install Ansible In Windows 10 WSL Windows Subsystem For Linux 00:00:00
How To Install Ansible In Windows 11 WSL: Windows Subsystem For Linux 00:00:00
How To Install Ansible In ArchLinux 2021.12.01 00:00:00
How To Install Ansible In Gentoo Linux 00:00:00
How To Install Ansible In AlmaLinux 8 00:00:00
How To Install Ansible In Oracle Linux 8 00:00:00
How To Install Ansible In SUSE Linux Enterprise Server (SLES) 15 SP3 00:00:00
How To Install Ansible In RedHat Enterprise Linux 9 Beta 00:00:00
How To Install Ansible In Fedora 36 00:00:00
How To Install Ansible In RedHat Enterprise Linux 9 00:00:00
How To Install Ansible In AlmaLinux 9 00:00:00
How To Install Ansible In OracleLinux 9 - Ansible Install 00:00:00
How To Install Ansible In Rocky Linux 9 - Ansible Install 00:00:00
How To Install Ansible In Fedora 37 - Ansible Install 00:00:00
Section 3 - Ansible Tip And Tricks
Print A Text Or Variable During Execution - Ansible Module Debug 00:00:00
Pause Execution - Ansible Module Pause 00:00:00
How To Pass Variables To Ansible Playbook In The Command Line? - Ansible Extra 00:00:00
Break A String Over Multiple Lines - Ansible Literal And Folded Block Operator 00:00:00
Ansible Terminology - Ansible_Hostname Vs Inventory_Hostname 00:00:00
Set Remote Environment Per Task Or Play - Ansible Environment Statement 00:00:00
Execute Command On The Ansible Host - Ansible Localhost 00:00:00
Three Options To Safely Limit Ansible Playbooks Execution To A Single Machine 00:00:00
Ansible Modules - Command Vs Shell 00:00:00
Write A Variable To A File - Ansible Module Copy Vs Template 00:00:00
How To Run Only One Task In Ansible Playbook? - Ansible Tags Statement 00:00:00
Filter A List By Its Attributes - Ansible Selectattr Filter 00:00:00
Using Date, Time And Timestamp In Ansible Playbook - Ansible Tip And Tricks 00:00:00
Using Date, Time And Timestamp Without Facts In Ansible Playbook - Ansible Date 00:00:00
Ansible Playbook Dry Run - Check And Diff Mode 00:00:00
Ansible Magic Variables - Ansible Tip And Tricks 00:00:00
Current Ansible-Playbook Path - Playbook_Dir Magic Variable 00:00:00
Run A Python Script On Remote Machines - Ansible Module Script 00:00:00
Build A Custom Ansible Execution Environment - Ansible-Builder Command-Line Tool 00:00:00
Run An Ansible Execution Environment - Ansible-Runner Command-Line Tool 00:00:00
Section 4 - Ansible Vault
Ansible Terminology - What Is An Ansible Vault? 00:00:00
Decrypt An Ansible Vault - Ansible Vault 00:00:00
Section 5 - Ansible Playbook Code For Linux
Edit Single Line Text - Ansible Module Lineinfile 00:00:00
Edit Multi-Line Text - Ansible Module Blockinfile 00:00:00
Test Host Availability - Ansible Module Ping 00:00:00
Reboot Remote Hosts - Ansible Module Reboot 00:00:00
Checkout Git Repository Via SSH - Ansible Module Git 00:00:00
Checkout Git Repository Via HTTPS - Ansible Module Git 00:00:00
Copy Files From Remote Hosts - Remote To Local - Ansible Module Fetch 00:00:00
Copy Files To Remote Hosts - Local To Remote - Ansible Module Copy 00:00:00
Copy Multiple Files - Ansible Lookup Plugin Fileglob 00:00:00
Start And Enable Services On Boot On Remote Hosts - Ansible Module Service_Facts 00:00:00
Stop And Disable Services On Boot On Remote Hosts - Ansible Module Service 00:00:00
Apply A File Template - Ansible Module Template 00:00:00
Restart Services On Remote Hosts - Ansible Module Service 00:00:00
Schedule A Cron Job Task In Linux - Ansible Module Cron 00:00:00
Loop In File Template - Ansible Module Template - Generate Hosts File 00:00:00
Read File From Remote Hosts - Ansible Module Slurp 00:00:00
Read A File Into A Variable On Host - Ansible Lookup Plugin File 00:00:00
Download A File Using An HTTPS Proxy Via Environment Variables - Ansible Get_Url 00:00:00
Read An Environment Variable - Ansible Lookup Plugin Env 00:00:00
Permanently Set Remote System Wide Environment Variables On Linux - Ansible Line 00:00:00
Reduce Intel Laptop CPU Temperature Overheating In Linux - Ansible Module Packag 00:00:00
Read A JSON File Into A Variable - Ansible Lookup Plugin File 00:00:00
Section 6 - Ansible Code Reuse: Roles And Collections With Ansible Galaxy
How To Download And Use Ansible Galaxy Roles — Ansible-Galaxy And Requirements 00:00:00
Download And Use Ansible Galaxy Collection - Ansible-Galaxy And Requirements.Yml 00:00:00
Build And Run An Ansible Execution Environment - Ansible-Builder And Ansible-Runner 00:00:00
Section 7 - Ansible Code To Interact With Linux Filesystem
Create An Empty File - Ansible Module File 00:00:00
Create A Text File - Ansible Module Copy 00:00:00
Check If A File Exists - Ansible Module Stat 00:00:00
Create A Directory - Ansible Module File 00:00:00
Check If A Directory Exists - Ansible Module Stat 00:00:00
Rename File Or Directory - Ansible Module Copy And File 00:00:00
Change File Permission - Ansible Module File 00:00:00
Add Execute Permission 755 On Linux File — Ansible Module File 00:00:00
Delete File Or Directory - Ansible Module File 00:00:00
Create A Symbolic Link (Also Symlink Or Soft Link) In Linux -Ansible Module File 00:00:00
Create A Hard Link In Linux - Ansible Module File 00:00:00
Download A File - Ansible Module Get_Url 00:00:00
Extract An Archive - Ansible Module Unarchive 00:00:00
Mount A Windows Share In Linux SMB Or CIFS - Ansible Module Mount 00:00:00
Mount An NFS Share In Linux - Ansible Module Mount 00:00:00
Concatenate Multiple Files In A Specific Order - Ansible Module Template And YAM 00:00:00
Backup With Rsync - Local To Remote - Ansible Module Synchronize 00:00:00
Find All Files With Extension - Ansible Module Find 00:00:00
Search For A String In A File - Ansible Module Lineinfile 00:00:00
How To Delete Only Files Inside A Directory - Ansible Module Find 00:00:00
Create ISO Image From Files And Folders - Ansible Module Iso_Create 00:00:00
Section 8 - Ansible Code To Interact With Linux Storage
Create A New LVM Partition - Ansible Module Parted 00:00:00
Section 9 - Ansible Code For User Management On Linux Systems
Create A User Account - Ansible Module User 00:00:00
Remove User Account - Ansible Module User 00:00:00
Change User Password - Ansible Module User 00:00:00
Disable User Account - Ansible Module User 00:00:00
Enable User Account - Ansible Module User 00:00:00
User Password Expiration - Ansible Module User 00:00:00
Create A Group In Linux - Ansible Module Group 00:00:00
Delete A Group - Ansible Module Group 00:00:00
Add A User To A Second Group On Linux - Ansible Module User 00:00:00
Change The User Primary Group On Linux - Ansible Module User 00:00:00
Section 10 - Ansible Playbook Code Interact With Web Services API
Submit A GET Request To A REST API Endpoint - Interact With Web Services - Uri 00:00:00
Token Based Authentication In REST API - Interact With Webservice - Ansible Uri 00:00:00
Section 11 - Ansible Playbook Code For Linux Security
Set Sysctl Kernel Parameters - Ansible Module Sysctl 00:00:00
Load And Unload Kernel Modules In Linux - Ansible Module Modprobe 00:00:00
Configure Kernel Parameters In Redhat-Like Linux Systems - Ansible System Role 00:00:00
Set The SELinux Policy States And Modes On Linux - Ansible Module Selinux 00:00:00
Enable Or Disable Permissive Domain In SELinux Policy On Linux - Ansible Module 00:00:00
Enable Or Disable SELinux Boolean On Linux - Ansible Module Seboolean 00:00:00
Vulnerability Scanner Log4Shell Remote Code Execution Log4J (CVE-2021–44228) 00:00:00
How To Mitigrate Polkit Privilege Escalation - PWNKIT (CVE-2021-4034) On Redhat 00:00:00

About This Course

Who this course is for:

  • System Administrator
  • IT Professional
  • Cloud Engineer
  • DevOps
  • Linux Engineer
  • Automation Engineer

What you’ll learn: 

  • Ansible in real life use cases
  • Ansible troubleshooting of most common errors
  • Install Ansible in the most common operating system
  • Ansible code by modules
  • Ansible code specific for RedHat-like and Debian-like systems

Requirements: 

  • Ansible basic knowledge

Learn the Ansible automation technology with some real-life examples.

Every successful IT department needs automation for bare metal servers, virtual machines, cloud, containers, and edge computing. Automate your IT journey with Ansible automation technology.

I’m going to teach you, example by example, how to accomplish the most common System Administrator tasks.

You will start with installing Ansible in RedHat Enterprise Linux, Ubuntu, and macOS using the most command package manager and archives.

Each of the 240+ lessons summarizes a module: from the most critical parameter to some live demo of code and real-life usage. Each code is battle proven in real life. Every video includes terminal interaction and verification steps. Mundane activities like creating a text file, extracting and archiving, and fetching a repository using HTTPS or SSH connections could be automated with some lines, user management, and interaction with API services; these are only some of the long lists included in the course.

Some Ansible codes are usable in all the Linux systems, some specific for RedHat-like, Debian-like, and Windows systems.

The 30+ Ansible troubleshooting lesson teaches you how to read the error message, reproduce it, and the process of troubleshooting and resolution.

Note: This is Part 1 of a 2-part course.

Our Promise to You

By the end of this course, you will have learned how to automate using Ansible.

10 Day Money Back Guarantee. If you are unsatisfied for any reason, simply contact us and we’ll give you a full refund. No questions asked.

Get started today!

Course Curriculum

Section 1 - Introduction
Introduction 00:00:00
Ansible Ad-Hoc Command - Ansible Command 00:00:00
Ansible Terminology - What Is An Ansible Playbook? 00:00:00
Section 2 - Install Ansible
Ansible Terminology - Ansible Vs Ansible-Core Packages 00:00:00
How To Install Ansible In RedHat Enterprise Linux 8 00:00:00
How To Install Ansible In Amazon Linux 2 (AWS EC2) 00:00:00
How To Install Ansible In Fedora 34 00:00:00
How To Install Ansible In Ubuntu 20.04 LTS 00:00:00
How To Install Ansible In Ubuntu 21.10 00:00:00
How To Install Ansible In Ubuntu 22.04 LTS 00:00:00
How To Install Ansible In Fedora 35 00:00:00
How To Install Ansible In CentOS 8 00:00:00
How To Install Ansible In CentOS Stream 8 00:00:00
How To Install Ansible In CentOS 9 Stream 00:00:00
How To Install Ansible In Debian 11 00:00:00
How To Install Ansible In OpenSUSE Leap 15 00:00:00
How To Install Ansible In Rocky Linux 8 00:00:00
How To Install Ansible In macOS 00:00:00
How To Install Ansible With PIP 00:00:00
How To Install Ansible In Windows 10 WSL Windows Subsystem For Linux 00:00:00
How To Install Ansible In Windows 11 WSL: Windows Subsystem For Linux 00:00:00
How To Install Ansible In ArchLinux 2021.12.01 00:00:00
How To Install Ansible In Gentoo Linux 00:00:00
How To Install Ansible In AlmaLinux 8 00:00:00
How To Install Ansible In Oracle Linux 8 00:00:00
How To Install Ansible In SUSE Linux Enterprise Server (SLES) 15 SP3 00:00:00
How To Install Ansible In RedHat Enterprise Linux 9 Beta 00:00:00
How To Install Ansible In Fedora 36 00:00:00
How To Install Ansible In RedHat Enterprise Linux 9 00:00:00
How To Install Ansible In AlmaLinux 9 00:00:00
How To Install Ansible In OracleLinux 9 - Ansible Install 00:00:00
How To Install Ansible In Rocky Linux 9 - Ansible Install 00:00:00
How To Install Ansible In Fedora 37 - Ansible Install 00:00:00
Section 3 - Ansible Tip And Tricks
Print A Text Or Variable During Execution - Ansible Module Debug 00:00:00
Pause Execution - Ansible Module Pause 00:00:00
How To Pass Variables To Ansible Playbook In The Command Line? - Ansible Extra 00:00:00
Break A String Over Multiple Lines - Ansible Literal And Folded Block Operator 00:00:00
Ansible Terminology - Ansible_Hostname Vs Inventory_Hostname 00:00:00
Set Remote Environment Per Task Or Play - Ansible Environment Statement 00:00:00
Execute Command On The Ansible Host - Ansible Localhost 00:00:00
Three Options To Safely Limit Ansible Playbooks Execution To A Single Machine 00:00:00
Ansible Modules - Command Vs Shell 00:00:00
Write A Variable To A File - Ansible Module Copy Vs Template 00:00:00
How To Run Only One Task In Ansible Playbook? - Ansible Tags Statement 00:00:00
Filter A List By Its Attributes - Ansible Selectattr Filter 00:00:00
Using Date, Time And Timestamp In Ansible Playbook - Ansible Tip And Tricks 00:00:00
Using Date, Time And Timestamp Without Facts In Ansible Playbook - Ansible Date 00:00:00
Ansible Playbook Dry Run - Check And Diff Mode 00:00:00
Ansible Magic Variables - Ansible Tip And Tricks 00:00:00
Current Ansible-Playbook Path - Playbook_Dir Magic Variable 00:00:00
Run A Python Script On Remote Machines - Ansible Module Script 00:00:00
Build A Custom Ansible Execution Environment - Ansible-Builder Command-Line Tool 00:00:00
Run An Ansible Execution Environment - Ansible-Runner Command-Line Tool 00:00:00
Section 4 - Ansible Vault
Ansible Terminology - What Is An Ansible Vault? 00:00:00
Decrypt An Ansible Vault - Ansible Vault 00:00:00
Section 5 - Ansible Playbook Code For Linux
Edit Single Line Text - Ansible Module Lineinfile 00:00:00
Edit Multi-Line Text - Ansible Module Blockinfile 00:00:00
Test Host Availability - Ansible Module Ping 00:00:00
Reboot Remote Hosts - Ansible Module Reboot 00:00:00
Checkout Git Repository Via SSH - Ansible Module Git 00:00:00
Checkout Git Repository Via HTTPS - Ansible Module Git 00:00:00
Copy Files From Remote Hosts - Remote To Local - Ansible Module Fetch 00:00:00
Copy Files To Remote Hosts - Local To Remote - Ansible Module Copy 00:00:00
Copy Multiple Files - Ansible Lookup Plugin Fileglob 00:00:00
Start And Enable Services On Boot On Remote Hosts - Ansible Module Service_Facts 00:00:00
Stop And Disable Services On Boot On Remote Hosts - Ansible Module Service 00:00:00
Apply A File Template - Ansible Module Template 00:00:00
Restart Services On Remote Hosts - Ansible Module Service 00:00:00
Schedule A Cron Job Task In Linux - Ansible Module Cron 00:00:00
Loop In File Template - Ansible Module Template - Generate Hosts File 00:00:00
Read File From Remote Hosts - Ansible Module Slurp 00:00:00
Read A File Into A Variable On Host - Ansible Lookup Plugin File 00:00:00
Download A File Using An HTTPS Proxy Via Environment Variables - Ansible Get_Url 00:00:00
Read An Environment Variable - Ansible Lookup Plugin Env 00:00:00
Permanently Set Remote System Wide Environment Variables On Linux - Ansible Line 00:00:00
Reduce Intel Laptop CPU Temperature Overheating In Linux - Ansible Module Packag 00:00:00
Read A JSON File Into A Variable - Ansible Lookup Plugin File 00:00:00
Section 6 - Ansible Code Reuse: Roles And Collections With Ansible Galaxy
How To Download And Use Ansible Galaxy Roles — Ansible-Galaxy And Requirements 00:00:00
Download And Use Ansible Galaxy Collection - Ansible-Galaxy And Requirements.Yml 00:00:00
Build And Run An Ansible Execution Environment - Ansible-Builder And Ansible-Runner 00:00:00
Section 7 - Ansible Code To Interact With Linux Filesystem
Create An Empty File - Ansible Module File 00:00:00
Create A Text File - Ansible Module Copy 00:00:00
Check If A File Exists - Ansible Module Stat 00:00:00
Create A Directory - Ansible Module File 00:00:00
Check If A Directory Exists - Ansible Module Stat 00:00:00
Rename File Or Directory - Ansible Module Copy And File 00:00:00
Change File Permission - Ansible Module File 00:00:00
Add Execute Permission 755 On Linux File — Ansible Module File 00:00:00
Delete File Or Directory - Ansible Module File 00:00:00
Create A Symbolic Link (Also Symlink Or Soft Link) In Linux -Ansible Module File 00:00:00
Create A Hard Link In Linux - Ansible Module File 00:00:00
Download A File - Ansible Module Get_Url 00:00:00
Extract An Archive - Ansible Module Unarchive 00:00:00
Mount A Windows Share In Linux SMB Or CIFS - Ansible Module Mount 00:00:00
Mount An NFS Share In Linux - Ansible Module Mount 00:00:00
Concatenate Multiple Files In A Specific Order - Ansible Module Template And YAM 00:00:00
Backup With Rsync - Local To Remote - Ansible Module Synchronize 00:00:00
Find All Files With Extension - Ansible Module Find 00:00:00
Search For A String In A File - Ansible Module Lineinfile 00:00:00
How To Delete Only Files Inside A Directory - Ansible Module Find 00:00:00
Create ISO Image From Files And Folders - Ansible Module Iso_Create 00:00:00
Section 8 - Ansible Code To Interact With Linux Storage
Create A New LVM Partition - Ansible Module Parted 00:00:00
Section 9 - Ansible Code For User Management On Linux Systems
Create A User Account - Ansible Module User 00:00:00
Remove User Account - Ansible Module User 00:00:00
Change User Password - Ansible Module User 00:00:00
Disable User Account - Ansible Module User 00:00:00
Enable User Account - Ansible Module User 00:00:00
User Password Expiration - Ansible Module User 00:00:00
Create A Group In Linux - Ansible Module Group 00:00:00
Delete A Group - Ansible Module Group 00:00:00
Add A User To A Second Group On Linux - Ansible Module User 00:00:00
Change The User Primary Group On Linux - Ansible Module User 00:00:00
Section 10 - Ansible Playbook Code Interact With Web Services API
Submit A GET Request To A REST API Endpoint - Interact With Web Services - Uri 00:00:00
Token Based Authentication In REST API - Interact With Webservice - Ansible Uri 00:00:00
Section 11 - Ansible Playbook Code For Linux Security
Set Sysctl Kernel Parameters - Ansible Module Sysctl 00:00:00
Load And Unload Kernel Modules In Linux - Ansible Module Modprobe 00:00:00
Configure Kernel Parameters In Redhat-Like Linux Systems - Ansible System Role 00:00:00
Set The SELinux Policy States And Modes On Linux - Ansible Module Selinux 00:00:00
Enable Or Disable Permissive Domain In SELinux Policy On Linux - Ansible Module 00:00:00
Enable Or Disable SELinux Boolean On Linux - Ansible Module Seboolean 00:00:00
Vulnerability Scanner Log4Shell Remote Code Execution Log4J (CVE-2021–44228) 00:00:00
How To Mitigrate Polkit Privilege Escalation - PWNKIT (CVE-2021-4034) On Redhat 00:00:00

Are you interested in higher education?