Dec 1, 21
Stop and disable services on boot on remote hosts - Ansible module service_facts, service
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.
Nov 30, 21
Start and enable services on boot on Linux remote hosts - Ansible module service_facts, service
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.
Nov 29, 21
NFS Server - Export an NFS Share in RedHat-like systems: RHEL, CentOS, CentOS Stream, Fedora - Ansible modules yum, file, lineinfile, command, firewalld, service
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
Nov 26, 21
Register a system with Red Hat Subscription-Manager - Ansible module redhat_subscription
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.
Nov 25, 21
Mount an NFS share in Linux - Ansible module mount
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.
Nov 9, 21
User password expiration - Ansible module user
How to ser the user password expiration applying the Linux aging policy system.