
How to use the ping module, execute a command and retrieve the Ansible Facts from a target node via the ansible command line.
A step-by-step guide inside the Ansible Playbook anatomy: play, tasks, modules, conditional, loop, handler, variable, list.
What is ansible-core? What is the ansible community package? What happened to the Ansible project after version 2.9? An overview of the ansible community and ansible-core packages and use-cases nowadays.
How to install the latest and a specific version of Ansible in Red Hat Enterprise version 8 using Ansible Engine software collection.
How to install Ansible in Ubuntu 20.04 LTS using the universe and PPA repositories.
How to install Ansible in Ubuntu 21.10 using the universe and PPA repositories.
How to install and maintain Ansible inside CentOS 8 using the EPEL repository with a practical demo.
How to install and maintain Ansible inside CentOS 8 Stream using the EPEL Next repository with a practical demo.
How to install the latest version of Ansible in openSUSE using the official SUSE Leap "update" repository.
How to install and maintain up-to-date Ansible inside Rocky Linux 8 using the EPEL repository.
The easier way to install the latest version of Ansible and maintain up-to-date in ArchLinux 2021.12.01 using Pacman and the Community repository
The easier way to install the latest version of Ansible and maintain up-to-date in Debian 11 using APT and the "main" default repository.
The easier way to install and maintain up-to-date Ansible inside Gentoo Linux using the "portage" package manager.
How to install Ansible in Amazon Linux 2 using the Amazon Extras Library "amazon-linux-extras" and the EPEL (Extra Packages for Enterprise Linux) repositories.
How to install Ansible with PIP - the Python package manager.
The easier way to install the latest version of Ansible and maintain up-to-date in CentOS 9 Stream using DNF and the "appstream" system repository.
How to install and maintain up-to-date Ansible inside AlmaLinux 8 using the EPEL repository.
How to install and maintain up-to-date Ansible inside SUSE Linux Enterprise Server (SLES) 15 SP3 using the SUSE Package Hub repository.
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9 included in the RHEL 9 AppStream repository.
How to install and maintain up-to-date Ansible inside AlmaLinux 9.
How to install Ansible in Ubuntu 22.04 LTS.
How to install and maintain up-to-date Ansible inside Fedora 35.
How to install and maintain up-to-date Ansible inside Fedora 36.
How to install and maintain up-to-date Ansible inside Rocky Linux 9 using DNF and the ”appstream” system repository.
How to install and maintain the latest version of Ansible inside Fedora 37 using the system repository with a practical demo.
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9.1 included in the RHEL 9.1 AppStream repository.
How to install ansible using the universe repository in Ubuntu 23.04 Lunar Lobster.
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9.2 included in the RHEL 9.2 AppStream repository.
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9.3 included in the RHEL 9.3 AppStream repository.
Streamlining IT Automation: Installing Ansible on Ubuntu 23.10
Deep dive into the Ansible module ping in the collection "ansible.builtin" to test the access to a managed host and that Python is installed. Live demo and Ansible playbook included.
Some real-life examples from print “Hello world!”, print a text, print a variable, print a combination of text and variable, and set the verbosity level.
A comparison between command vs shell Ansible modules, when you really need to execute commands on Linux target hosts.
How to edit a single-line text in a file with Ansible module lineinfile customize your "sshd_config".
Deep dive into the Ansible module blockinfile of the collection "ansible. builtin" to edit multi-line text with Ansible. Live demo and Ansible playbook included.
How to pause a playbook execution for a certain amount of minutes or seconds with Ansible.
How to reboot remote hosts with Ansible specifying the notification message to logged users, the delay seconds, and the verification command. Live demo and fun included ;-)
How to checkout a git repository via HTTPS using Ansible module git with some Ansible Playbook example and live demo.
How to checkout a git repository via SSH using Ansible module git.
How to copy report.txt file to remote hosts using Ansible module copy.
How to copy files from remote hosts with Ansible? Simple code how to copy /var/log/messages from managed host to controller.
How to list the available Linux services and automate the start and enable service on boot process with Ansible playbook. Included code and demo with "chronyd.service" NTP server on a RedHat Enterprise Linux 8.
How to restart services on a managed host using Ansible? The service module supports init systems include BSD init, OpenRC, SysV, Solaris SMF, systemd, upstart. I'm going to show you how to restart services on a Linux-managed host with some simple code
How to create and use templates in Ansible Playbooks. An included example is how to deploy an HTML placeholder using the Jinga2 template in your Nginx webserver.
How to use for loop in Ansible module template to generate/etc/myhosts file with IP address, hostname, and short name from Ansible inventory. Ansible Playbook, Jinja2 template, and with Magic Variables included.
How to automate the schedule of command execution to a specific minute, hour, day, month, weekday, and user in Linux using cron service.
How to retrieve a JSON list of users via a GET request to a REST API web service HTTPS endpoint from a remote Linux host in a few lines of Ansible code.
How to retrieve a JSON token via a POST authentication request using a JSON body formed by email and password to a REST API web service HTTPS endpoint from a remote Linux host in a few lines of Ansible code.
How to use multi-line YAML variables in Ansible using the “|” Literal Block Scalar, and the Folded Block Scalar, operators. Plus how to elide the new line “\n” at the end of the line and print multi-line with debug module on a terminal.
How to execute Ansible command(s) or task(s) on localhost using the connection plugin local and the right ansible internals variables.
How to automate the backup of an “examples” directory minimizing network usage on Linux using Ansible module synchronize and rsync utility.
Three options to limit the execution of a potentially harmful Ansible Playbook to only one host.
How to select single or multiple tasks, include, import, play, block, and role in an Ansible Playbook using tags parameter of ansible-playbook command.
How to automate the setup of a detached Apache httpd Web Server tag:latest in a Docker Container pass-throw of port 8080 to 80 with a custom webroot for Debian-like systems.
How to automate the setup of a detached Apache httpd Web Server tag:latest in a Podman Container pass-throw of port 8080 to 80 for RedHat-like systems.
How to reduce Intel laptop CPU Temperature overheating using Ansible Playbook with package module and zero-configuration Linux thermal daemon (thermald).
How to automate the execution of a "cars.py" custom Python script on a remote machine after transferring it and processing the output as an Ansible JSON variable using Ansible Playbook and script module.
A Comprehensive Guide to Managing Configuration with ansible-config and ansible.cfg files
How to store variables and files in an encrypted way using the ansible-vault command line utility.
How to decrypt an Ansible vault file using the ansible-vault command line utility.
How to use an Ansible Vault in an Ansible Playbook to store a password variable encrypted on disk.
How to create an empty ~/example.txt file or update the time of an already created file.
How to create a simple text file? I'm going to show you a live demo with some simple Ansible code.
How to check if a file exists in Ansible? I’m going to show you a live demo and some simple Ansible code. I'm going to show you how to combine the "stat" module with conditional to verify an existing and not existing path.
How to set up the "~/example" directory, set the user and group ownership, and UNIX mode '0644' in Linux with Ansible.
Deep dive into the Ansible module stat of the collection "ansible.builtin" to test if a specified path is a directory and print a message. Live demo and Ansible playbook included.
How to rename a file or directory foo, check the file existence, and perform the verification in a live demo and some simple Ansible code.
How to change file or directory permission with Ansible? I’m going to show you a live demo and some simple Ansible code to change chmod and group of a test.txt file.
How to automate the setting of execute permission 755 for example.sh Linux file with Ansible module file.
A real-life example about how the "deleteme" file and the "deleteme" directory with Ansible. Tested in a target Linux machine as well for idempotency of the Ansible Playbook.
How to create an "example" symbolic link that references "/proc/cpuinfo" in Linux with Ansible. Simple Ansible code and verification included.
How to create a "link" hard link that references the "example.txt" text file in the Linux filesystem with Ansible. Simple Ansible code and verification included.
How to download a tarball, verify the checksum, assign some permission with Ansible
Live console coding how to download a zip file and extract in a user home directory. The playbook is also taking care of the necessary dependencies.
How to Mount a Windows share in Linux SMB/CIFS. The Ansible Playbook code is going to check the required packages, create the mount-point and setup the Windows network shared folder via SMB/CIFS protocol on the Linux target machine. Demo and live coding included.
How to automate the concatenation of multiple files and format using a list in the YAML and Ansible module template with Jinja2 language. Included example with "a.txt", "b.txt" and "includes.yaml" files for Pandoc.
How to mount an NFS share in Linux. The Ansible Playbook code is going to check the required packages, create the mount-point, and set up the NFS network shared folder using NFS4 protocol on the Linux target machine. Demo and live coding included for RedHat-like and Debian-like systems.
How to automate the search and delete of the files and directories inside a directory keeping the main folder with Ansible modules find and file.
How to automate the finding of all files with “.cnf” extension under the “example” directory of “devops” user using Ansible Playbook and find module.
How to automate the creation of a “test.iso” ISO9660 file containing an “helloworld.txt” file using Ansible Playbook and iso_create module.
How to use the regular expression within an Ansible Playbook.
Learn how to use the Ansible quota module to automate disk space quotas for users and groups, ensuring efficient resource management.
How to create an example user with home directory, groups, password, and SSH key file with Ansible Playbook.
How to remove an example user removing home directory and spool mail files.
How to write an Ansible Playbook to assign the password "password" to an "example" user account in a Linux system with SHA512 encryption.
How to disable an "example" user in Linux by locking the password and setting the special "nologin" shell without login possibility.
How to enable a user without password lock and with the appropriate shell in Linux.
How to ser the user password expiration applying the Linux aging policy system.
How to create the "example" group or verify that is present on your target Linux system or macOS.
How to delete the "example" group or verify that is not present on your target Linux system or macOS.
How to automate the Linux Kernel module loading of the "dummy" module with parameters on an example machine with Ansible.
How to automate the configuration of Kernel Parameters (sysctl, sysfs, and hugepages) in RedHat-like Linux systems using Linux System Role "linux-system-role.kernel_settings" from Ansible Galaxy.
How to solve the error connection failed fatal error when connecting via ssh host localhost port 22 when testing your code on your local machine.
How to avoid the SSH Host Key checking at the beginning of every Ansible execution in our laboratory, CI/CD pipeline, or cloud computing provider.
Strengthening Cybersecurity and Compliance with Ansible Automation CIS Benchmark Hardening for Red Hat Enterprise Linux 9.
Simplifying Red Hat Enterprise Linux 9 Security Compliance: Streamline CIS Benchmark Implementation with Ansible Automation
How to automate the setting and verification of the "enforcing" SELinux mode and state with "targeted" policy and relabel the filesystem if necessary on Linux target with Ansible.
How to automate the enabling or disabling of SELinux Permissive policy per single process or domain, keeping the whole system under enforcing policy and making it persistent after a reboot on Linux with Ansible.
How to automate the enabling of the "httpd_use_nfs" SELinux boolean and make it persistent after a reboot on Linux with Ansible.
How to automate the setup of a detached Apache httpd Web Server tag:latest in a Docker Container pass-throw of port 8080 to 80 with a custom webroot for Debian-like systems.
How to automate the setup of a detached Apache httpd Web Server tag:latest in a Podman Container pass-throw of port 8080 to 80 and a custom index.html page for RedHat-like systems.
Enhancing Compliance and Automation in Ansible with ansible-policy Utility
Using Ansible to Compare Versions and Ensure Consistency Across Your Infrastructure
How to automate the reading of HOME environmental variable and use it in your Ansible Playbook code with lookup plugin env.
How to automate the copy of the "example/*.txt" files to a target host using the with_fileglob Ansible loop statement and Ansible lookup plugin fileglob.
How to automate the reading of example.txt file on Ansible host, assign to a variable and use in your Ansible Playbook code.
How to automate the reading of example.json file on Ansible host, assign to a variable and use in your Ansible Playbook code.
Extending Ansible Functionalities with Custom Lookup Plugins for retrieving API tokens.
Extending Ansible’s Capabilities with a Custom File Retrieval Python Lookup Plugin.
Profiling, Troubleshooting, and Optimizing Resources in Ansible Automation with timer, profile_tasks, and profile_roles Callback Plugins
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.
Each of the 100+ lessons summarizes an Ansible module you could use in your journey, from the most crucial parameter to some live demo of code and real-life usage. Each code is battle-proved in real life. Each video includes terminal interaction and verification procedures. Automate every mundane activity in Linux like editing config files becomes accessible from editing a line, multiple lines, or creating from the template, testing if a host is available, pausing the execution, rebooting a server, checking out some code from a git repository via HTTPS or SSH with key, copying files to or from a remote host, restart services and use Ansible templates to automate with some lines of code. These are only some of the long lists included in the course. In the end, you have the skill to automate more of your Linux tasks and journey.
There are some Ansible codes that are usable in all Linux systems.
Are you ready to automate your day with Ansible?