CentOS

53 Ansible tutorials tagged “CentOS”. Working examples covering automation, configuration management, and DevOps workflows.

Add Secondary Groups to Linux Users with Ansible Playbook

playbooks · 3

Learn how to add secondary groups to Linux users with an Ansible playbook. This step-by-step guide includes YAML configuration and execution details.

Beginner

Ansible Linux User Management Guide

playbooks · 5

Automate Linux user and group management with Ansible. Complete guide covering user creation, group management, SSH keys, password policies, PostgreSQL.

Beginner

Ansible CIS Hardening — RHEL 9

playbooks · 5

Discover how to automate CIS Benchmark hardening for RHEL 9 systems using Ansible. Simplify security compliance with the "ansible-lockdown" project for.

Advanced

Strengthening Security: Automating CIS Benchmark Hardening for RHEL 9 with Ansible

playbooks · 6

Automate CIS Benchmark hardening for RHEL 9 using Ansible with the Ansible Lockdown roles, ensuring robust security configurations across systems.

Advanced

Change the User Primary Group on Linux with Ansible

playbooks · 3

Learn how to use Ansible to change a user's primary group on Linux systems with the user module. Streamline user management and ensure consistent group.

Beginner

Ansible stat — Check If Directory Exists

playbooks · 6

Check if a directory exists in Ansible with stat module. Conditional task execution, create-if-missing patterns, and permission verification.

Beginner

Configuring Kernel Parameters in RedHat-like Linux Systems with Ansible System Role

playbooks · 4

Learn how to configure kernel parameters in RedHat-like Linux systems using the Ansible System Role. Follow our live Playbook example for efficient.

Beginner

Ansible iso_create — Build ISO Images

playbooks · 4

Create ISO images from files and folders with the Ansible iso_create module. Build bootable ISOs, custom install media, and automated image pipelines.

Beginner

How to Create a New LVM Partition with Ansible

playbooks · 4

Discover how to automate the creation of LVM partitions on Linux systems using Ansible. This guide walks you through using the community.general.parted.

Beginner

Create a directory in Linux — Ansible module file

playbooks · 3

How to set up the "~/example" directory, set user and group ownership, and apply UNIX mode 0644 in Linux using Ansible with a live Playbook.

Beginner

Create Hard Links in Linux with Ansible Playbooks

playbooks · 5

Learn to create hard links in Linux using Ansible’s file module. Follow our step-by-step guide and live Playbook example for effective management.

Beginner

Ansible File Module Demo: Create Symlinks Easily

playbooks · 3

Discover how to create symlinks with Ansible's file module in this easy-to-follow Playbook. Master Ansible automation with practical examples.

Beginner

ansible.builtin.file: Create and Manage Files

playbooks · 5

Learn ansible.builtin.file module: Create empty files with touch, directories, symlinks, and manage permissions and ownership in Ansible playbooks.

Advanced

Delete a group — Ansible module group

playbooks · 2

How to delete the \ Step-by-step Ansible tutorial with practical examples and best practices."example\" group or verify that is not present on your.

Beginner

Ansible file Module — Delete Files

playbooks · 5

Delete files, directories, and symlinks with Ansible file module state: absent. Complete guide with conditional deletion, batch cleanup, safe patterns,.

Beginner

Deploy Apache HTTPD with Podman Using Ansible Playbook

playbooks · 7

Automate Apache HTTPD deployment in a Podman container with Ansible. Manage Podman installation, image pulling, and container configuration.

Beginner

Ansible Podman — Apache HTTPD Deploy

playbooks · 9

Automate the deployment of Apache HTTPD in a Podman container using Ansible. Set up web root, custom index.html, and manage container settings.

Beginner

Deploy Squid Proxy on RedHat Systems with Ansible

playbooks · 5

Learn to deploy and configure a Squid proxy server on RedHat-like systems using Ansible. Follow our step-by-step guide with simple Ansible code examples.

Beginner

Efficient Web Server Setup Using Ansible Playbook

playbooks · 3

Set up a web server effortlessly with our Ansible playbook tutorial. Follow step-by-step instructions for installing and configuring HTTPD service.

Beginner

Ansible Apache Vhost — RedHat Config

playbooks · 6

Automate Apache virtual host setup on RedHat systems with Ansible. Learn to manage web server installation, configuration, and firewall settings.

Beginner

Ansible lineinfile — Change IP Address in Config

playbooks · 6

This playbook uses the ansible.builtin.lineinfile and ansible.builtin.service modules to automate the process of updating the IP address and netmask.

Beginner

Edit Single Lines in Files — Ansible lineinfile Module Guide

playbooks · 5

Master the Ansible lineinfile module — insert, replace, and remove single lines in files. Complete guide with regexp matching, validation, backreferences,.

Beginner

Ansible SELinux Permissive Mode

playbooks · 4

How to automate the enabling or disabling of SELinux Permissive policy per single process or domain keeping the whole system under enforcing policy.

Beginner

Ansible seboolean — SELinux Booleans

playbooks · 8

Enable and disable SELinux booleans with ansible.posix.seboolean. Persist settings across reboots, list booleans, and troubleshoot SELinux policies.

Beginner

Ansible NFS Server Setup — Red Hat

playbooks · 4

Learn to automate the installation and configuration of an NFS server on Red Hat using an Ansible playbook. Enhance your system's efficiency now.

Beginner

Failed installation of Ansible in Amazon Linux 2022 Preview (AWS EC2) — Ansible install

playbooks · 4

Failed installation of Ansible in Amazon Linux 2022 Preview (AWS EC2) using the internal and the EPEL (Extra Packages for Enterprise Linux) repositories..

Beginner

Find All Files with Extension — Ansible module find

playbooks · 5

How to automate the finding of all files with “.cnf” extension under the “example” directory of “devops” user using Ansible Playbook and find module.

Beginner

Install Ansible on AlmaLinux 8 Easily with EPEL

playbooks · 9

Learn how to install and maintain Ansible on AlmaLinux 8 using the EPEL repository. Follow this simple guide to set up Ansible efficiently on your system.

Beginner

How to install Ansible in AlmaLinux 9 — Ansible install

playbooks · 7

Learn how to easily install and maintain Ansible on AlmaLinux 9 using the ansible-core package from the AppStream repository with this simple guide.

Beginner

How to install Ansible in Amazon Linux 2 (AWS EC2) — Ansible install

playbooks · 18

How to install Ansible in Amazon Linux 2 using the Amazon Extras Library \"amazon-linux-extras\" and the EPEL (Extra Packages for Enterprise Linux).

Beginner

How to install Ansible in CentOS 8 Stream — Ansible install

playbooks · 6

Learn the easiest way to install and maintain Ansible on CentOS Stream 8 using the EPEL Next repository, managed by the Fedora Special Interest Group.

Beginner

How to install Ansible in CentOS 8 — Ansible install

playbooks · 5

Discover the easiest way to install and maintain Ansible on CentOS 8 using the EPEL repository, managed by the Fedora Special Interest Group.

Beginner

How to install Ansible in CentOS 9 Stream — Ansible install

playbooks · 8

Learn how to install Ansible on CentOS Stream 9 using the AppStream repository for efficient automation and configuration management.

Beginner

How to install Ansible in Oracle Linux 9 — Ansible install

playbooks · 14

Learn how to easily install and maintain Ansible on Oracle Linux 9 using the ansible-core package from the AppStream repository with this.

Beginner

Install Ansible on Rocky Linux 9

playbooks · 8

How to install and maintain up-to-date Ansible inside Rocky Linux 9 using DNF and the ”appstream” system repository. Tested, copy-paste examples included.

Beginner

Mitigate CVE-2021-4034 on RHEL with Ansible Playbook

playbooks · 3

HUse Ansible to mitigate CVE-2021-4034 on RHEL systems. Automate the installation of SystemTap, debugging packages, and deploy mitigation scripts.

Beginner

Ansible Install Docker on Linux

playbooks · 6

Learn how to install Docker on Linux systems using an Ansible playbook. Follow our guide for a seamless Docker setup and start process.

Beginner

Install Google Chrome on Red Hat Using Ansible

playbooks · 4

Use Ansible to install Google Chrome on Red Hat. Follow our detailed playbook to add repositories and install Chrome efficiently.

Beginner

Install Microsoft Edge in RedHat-like systems — Ansible module rpm_key, yum_repository and yum

playbooks · 4

How to install the latest Microsoft Edge Stable on a RedHat-like workstation verify software using the public GPG key and set up the Microsoft repository..

Beginner

Ansible yum and dnf — RHEL Packages

playbooks · 5

Install, update, and remove packages on Red Hat family systems with Ansible's yum and dnf modules. Complete parameter reference, version pinning, group.

Beginner

Ansible modprobe — Load Kernel Modules

playbooks · 4

How to automate the Linux Kernel module loading of the "dummy" module with parameters on an example machine with Ansible.

Beginner

Ansible Rename File or Directory

playbooks · 5

How to rename a file or directory \"foo\", checking the file existence, and performing the verification in a live Playbook and some simple Ansible code.

Beginner

Ansible service — Restart Services

playbooks · 5

Manage system services with ansible.builtin.service. Start, stop, restart, and enable services on Linux with handlers and conditional examples.

Beginner

Search for a String in a File — Ansible module lineinfile

playbooks · 4

How to automate searching for the string "PasswordAuthentication no" in the "/etc/ssh/sshd_config" file using Ansible Playbook and the lineinfile module.

Beginner

Ansible sysctl Module — Kernel Tuning

playbooks · 4

Set and persist Linux kernel parameters with ansible.posix.sysctl. Playbook examples for vm.swappiness, ip_forward, file-max, and more.

Beginner

Set the SELinux Policy States and Modes on Linux — Ansible module selinux

playbooks · 4

How to automate the setting and verification of the "enforcing" SELinux mode and state with "targeted" policy and relabel the filesystem if necessary.

Advanced

Ansible service_facts — Enable on Boot

playbooks · 5

How to list the available Linux services and automate the start and enable service on boot process with Ansible playbook. Included code and Playbook with.

Beginner

Ansible service_facts — Stop Services

playbooks · 5

Stop, disable, and manage Linux services with Ansible service and service_facts modules. Control systemd units on remote hosts with playbook examples.

Beginner

The run_once statement in Ansible

playbooks · 6

Learn how to use run_once in Ansible at play and task levels. Understand why run_once may behave differently when strategy is set to free, with.

Advanced

Update Zoom flatpak(s) in Linux systems — Ansible module command

playbooks · 2

How to automate the update of the Zoom flatpak from version 5.9.1.1380 to 5.9.6.2225 in Linux using Ansible module command.

Beginner

User password expiration — Ansible module user

playbooks · 4

Learn how to set user password expiration time on Linux with Ansible. Join Luca Berton in a live Playbook using the Ansible `ansible.builtin.user`.

Beginner

Detect Apache Log4j CVE-2021-44228 with Ansible Playbook

playbooks · 4

Use Ansible to automate the detection of Apache Log4j CVE-2021-44228 vulnerability. Follow this guide to set up and run detection scripts efficiently.

Beginner

Ansible Write Variable — copy vs template

playbooks · 4

Write Ansible variables to files using copy content parameter or template module. Compare approaches for configs, JSON output, and dynamic content.

Advanced