My impression of the Ansible Fest 2021 event: the main event of Ansible lovers worldwide. The main announcement was Ansible Automation Platform 2.0 using Execution Environment technology and the upcoming Ansible Mesh communication protocol and so much more.

How to list the available Linux services and automate the stop and disable service on boot process with Ansible playbook. Included code and demo with “chronyd.service” NTP server on a RedHat Enterprise Linux 8.

Ansible enable services on boot on remote hosts

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.

Ansible enable services on boot on remote hosts

How to automate the configuration of an NFS Server with Ansible in six tasks: install packages, create the NFS share directory, add share in the config, export shares, restart NFS service and enable on boot, and open firewall service ports on boot in a RedHat-like Linux target system: RedHat Enterprise Linux, CentOS, CentOS Stream, Fedora, ClearOS, Oracle Linux, EuroLinux, Fermi Linux, EulerOS, ROSA Linux, Springdale Linux, Asianux.

Export an NFS Share in RedHat-like systems

How to automate the registration of a machine RedHat Enterprise Linux 8 to subscription-manager using the access.redhat.com credential, assign a pool of entitlement, and install some packages.

Ansible register a system with Red Hat Subscription-Manager

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.

Ansible mounts an NFS Share in Linux

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 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 install and maintain up-to-date Ansible inside Rocky Linux 8 using the EPEL repository.

How to install Ansible in Rocky Linux 8

Ansible Pilot

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store