module
138 Ansible tutorials tagged “module”. Working examples covering automation, configuration management, and DevOps workflows.
community.docker.docker_compose_v2 — Deploy Docker Compose Stacks
playbooks · 6
Deploy and manage Docker Compose stacks with the community.docker.docker_compose_v2 Ansible module. Complete reference with examples.
Ansible MySQL and PostgreSQL Database Automation
playbooks · 6
Automate MySQL and PostgreSQL database management with Ansible. Create databases, users, grants, backups, replication setup, and schema migrations using.
Ansible Proxmox Automation — VMs, Containers, and Cluster Management
playbooks · 6
Automate Proxmox VE with Ansible using community.general modules. Create VMs from templates, manage LXC containers, configure storage, networking.
Ansible iptables — Firewall Rules
playbooks · 6
Manage Linux iptables firewall rules with Ansible. Complete guide to ansible.builtin.iptables module — chains, rules, NAT, port forwarding, rate limiting,.
ansible.builtin.stat — Check If File or Directory Exists
playbooks · 5
The ansible.builtin.stat module checks if files, directories, or symlinks exist. Examples: conditional tasks, file properties, size checks, and checksums.
Ansible Docker — Containers & Images
playbooks · 6
Automate Docker with Ansible. Pull images, run containers, manage networks and volumes, deploy with docker_compose, and build images with practical.
Ansible Handlers — notify on Change
playbooks · 5
Trigger service restarts and reloads only when changes occur with Ansible handlers. notify, listen, flush_handlers, and run-once examples.
Ansible Jinja2 Templates — Dynamic Configuration Files
playbooks · 7
Use Ansible template module with Jinja2 to generate dynamic configuration files. Variables, loops, conditionals, filters, and practical template examples.
Ansible Loop — Lists Dicts Files
playbooks · 6
Use Ansible loop to repeat tasks over lists, dictionaries, nested items, and file globs. Replace with_items, with_dict, and with_fileglob with modern loop.
Ansible blockinfile Module: Manage Text Blocks
playbooks · 6
Ansible blockinfile inserts, updates, or removes multi-line text blocks using marker comments — ideal for config sections, SSH keys, and structured content.
Ansible copy Module — Copy Files to Remote Hosts
playbooks · 6
Copy files from the control node to remote hosts with Ansible copy module. Inline content, permissions, backup, validate, and directory copy with examples.
Ansible cron Module — Schedule Tasks
playbooks · 7
Manage cron jobs with the Ansible cron module. Create, modify, and remove scheduled tasks with time expressions, environment variables, and special times.
Ansible delegate_to: Run Tasks on Localhost & Other Hosts
playbooks · 5
Ansible delegate_to runs tasks on localhost or remote hosts while keeping variable context. Guide with load balancer, database, monitoring, and DNS examples.
Ansible File Module (ansible.builtin.file): Manage Files
playbooks · 6
Learn the Ansible file module (ansible.builtin.file): create directories, set permissions and ownership, manage symlinks, and delete files.
Ansible git Module — Clone and Manage Git Repositories
playbooks · 4
Clone Git repositories with ansible.builtin.git: check out a branch, tag or commit, make shallow clones, use SSH deploy keys and agent forwarding, deploy code.
Ansible group Module — Manage Groups
playbooks · 6
Create, modify, and delete Linux groups with the Ansible group module. Manage system groups, GIDs, and user membership with practical playbook examples.
Ansible lineinfile Module — Add, Replace, Remove Lines
playbooks · 6
Add, replace, and remove lines in config files with ansible.builtin.lineinfile. Regex patterns, insertafter, insertbefore, backrefs, and validate examples.
Ansible ping Module — Test Host Connectivity and Python
playbooks · 5
Use the Ansible ping module to test connectivity to remote hosts and verify Python is working. Troubleshoot SSH, WinRM, and connection issues with.
Ansible pip — Manage Python Packages
playbooks · 4
Use the Ansible pip module to install, update, and remove Python packages. Virtual environments, requirements files, and version pinning for Python.
Ansible register: Capture and Use Task Output
playbooks · 6
Use Ansible register to capture task output. Access stdout, stderr, return codes, and use registered variables in conditions, loops, and debug.
ansible.builtin.service: Start, Stop, Restart Services
playbooks · 5
ansible.builtin.service manages system services: start, stop, restart, reload, and enable at boot. Examples, parameters, troubleshooting tips.
Ansible shell — Remote Shell Commands
playbooks · 6
Run shell commands with ansible.builtin.shell: pipes, redirects, globbing and environment variables, idempotent creates and removes, and when to use command.
Ansible shell vs command Module — When to Use Each
playbooks · 6
ansible.builtin.shell vs ansible.builtin.command: shell runs through /bin/sh for pipes and redirects, command runs the binary directly. When to use each safely.
Ansible template Module — Generate Config Files with Jinja2
playbooks · 7
Use the Ansible template module to generate dynamic config files from Jinja2 templates. Variables, loops, conditionals, filters, and validation with.
Ansible unarchive — Extract Archives
playbooks · 5
Use the Ansible unarchive module to extract tar.gz, zip, and bz2 archives. Download and extract from URLs, set permissions, and manage extracted files.
ansible.builtin.user Module: Manage Linux Accounts
playbooks · 6
Manage Linux accounts with ansible.builtin.user: create, modify, and delete users; set passwords, groups, SSH keys, home directories, and shells.
Ansible wait_for — Ports Files Conditions
playbooks · 4
Use the Ansible wait_for module to wait for ports to open, files to appear, services to start, and processes to complete. Deployment orchestration.
Ansible when: Conditional Task Execution Guide
playbooks · 5
Learn Ansible when conditionals to run tasks based on facts, variables, and conditions. Skip tasks, branch logic, and control execution flow.
Ansible win_file — Windows Files Dirs
playbooks · 6
Use the Ansible win_file module to create, delete, and manage files and directories on Windows hosts. Includes examples for directory creation, symlinks,.
Ansible REST API: Call Web APIs with the uri Module
playbooks · 3
Learn how to call REST APIs from Ansible playbooks using the uri module. Practical examples for GET, POST, PUT, DELETE, authentication, and error handling.
Ansible get_url — Download Files
modules · 3
Download files from a URL with ansible.builtin.get_url, the Ansible way to wget: checksum checks, auth and headers, proxies, timeouts, retries and file modes.
Ansible shell vs command Module: When to Use Each
modules · 3
Ansible shell vs command module compared — when to use pipes, redirects, and environment variables. Learn best practices and why command is preferred over.
Ansible template Module: Generate Config Files with Jinja2
playbooks · 4
Master the Ansible template module — generate dynamic config files with Jinja2 variables, loops, and conditionals. Practical examples for nginx, systemd,.
Ansible user Module — Users & Groups
playbooks · 4
Complete guide to the Ansible user module — create users, set passwords, manage groups, SSH keys, and home directories. Includes group module examples.
Ansible Troubleshooting: Resolving community.aws.ec2_instance Issues
playbooks · 5
Resolve Ansible community.aws.ec2_instance module errors. Fix module not found, missing collections, inventory issues, and migration to.
Ansible troubleshooting — Error markupsafe
modules · 3
Resolve the No module named markupsafe error in Ansible by reinstalling Ansible, ansible-lint, and python-markupsafe via Homebrew.
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.
Ansible wait_for: Wait for Ports, Files, Conditions
playbooks · 7
Learn the Ansible wait_for module: wait for ports, files, conditions. Covers timeout, delay, parameters, real-world examples, and troubleshooting.
Send Email Notifications with Ansible — community.general.mail
playbooks · 6
Send email reports and alerts with Ansible using community.general.mail. Gmail SMTP setup, HTML emails, attachments, failure notifications.
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.
Ansible PostgreSQL Management
playbooks · 6
Manage PostgreSQL databases, users, extensions, backups, and replication with Ansible. Complete playbook examples for postgresql_db, postgresql_user.
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.
Understanding Ansible Builtin vs Legacy Collections: Key Differences
playbooks · 5
Explore the essential differences between Ansible's ansible.builtin and ansible.legacy collections. Understand how each affects your playbooks with.
Revolutionising Ansible: Testing the Limits of OpenAI’s ChatGPT for Smarter Automation
playbooks · 2
Exploring the Power of OpenAI’s ChatGPT in Revolutionizing Ansible Coding: Advancing Automation to the Next Level. Tested, copy-paste examples included.
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.
Run a Python Script on Remote Machines — Ansible module script
playbooks · 7
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.
Ansible postgresql_query — Run SQL
playbooks · 4
Execute SQL queries on PostgreSQL with ansible community.postgresql.postgresql_query. Select, insert, update, and manage databases with playbooks.
Rename a PostgreSQL Database — Ansible module postgresql_db
playbooks · 4
Rename a PostgreSQL database with Ansible using the community.postgresql.postgresql_db module. Step-by-step playbook with examples and best practices.
Ansible postgresql_db — Drop Database
playbooks · 4
How to automate the delete of a \"testdb\" database on PostgreSQL using Ansible Playbook and postgresql_db module. Tested, copy-paste examples included.
Automate PostgreSQL Backups with Ansible Playbook
playbooks · 4
Discover how to automate PostgreSQL database backups with Ansible. This guide includes a live Playbook example and detailed execution steps for.
Restore a PostgreSQL Database — Ansible module postgresql_db
playbooks · 5
How to automate the restore of a backup file of a “testdb” database on PostgreSQL using Ansible Playbook and postgresql_db module.
Ansible postgresql_privs Module
playbooks · 3
How to automate the granting of all permission for "myuser" user/role on database "testdb" on PostgreSQL using Ansible Playbook and postgresql_privs.
Configure PostgreSQL with Ansible: User Access and Service Management
playbooks · 3
Learn how to automate PostgreSQL configuration with Ansible. This guide shows how to set user access with md5 authentication and manage PostgreSQL.
Ansible postgresql_user — Create Roles
playbooks · 4
Discover how to create and manage PostgreSQL users and roles with Ansible. Follow our guide for seamless user management on your PostgreSQL server.
Create PostgreSQL Databases with Ansible: Easy Guide
playbooks · 3
Learn to automate PostgreSQL database management with Ansible postgresql_db module. Follow our guide to create, delete, and manage databases effortlessly.
Install PostgreSQL in Debian-like systems — Ansible modules apt, stat, shell, service
playbooks · 5
How to automate the installation of PostgreSQL on Debian-like systems: installing the necessary packages and dependency, initializing the.
Install PostgreSQL — Ansible RHEL yum
playbooks · 5
How to automate the installation of PostgreSQL on RedHat-like systems: installing the necessary packages and dependency, initializing the.
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.
Ansible community.vmware Collection Setup
playbooks · 4
Configure Ansible for VMware vSphere with community.vmware collection. Install pyVmomi, set credentials, and manage VMs with complete playbook examples.
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.
Set Execute Permission (a+x) on Linux File Using Ansible
playbooks · 3
Learn how to set execute permissions (a+x) on a Linux file using an Ansible playbook. Follow this guide for easy automation with the Ansible file module.
Ansible win_user — Change Password
playbooks · 3
Learn to automate Windows user password changes with Ansible win_user module. Easily update passwords and manage user accounts on Windows-like systems.
Remove a local user on Windows-like systems — Ansible module win_user
playbooks · 2
How to automate the removal of a local user “example” on Windows-like systems using the Ansible module win_user. With tested, real-world examples.
Ansible win_user — Create Local Users
playbooks · 3
Learn how to automate the creation and management of local user accounts on Windows systems using Ansible’s win_user module. Follow our detailed.
Remove a local group on Windows-like systems — Ansible module win_group
playbooks · 2
How to automate the removal of a local group \"accounting\" on Windows-like systems using the Ansible module win_group. Tested, copy-paste examples included.
Create Local Groups on Windows with Ansible Playbooks
playbooks · 2
Learn how to create and manage local groups on Windows systems using Ansible’s win_group module. Follow our detailed Playbook example for automation.
Ansible win_regedit — Registry Keys
playbooks · 3
Learn how to use Ansible win_regedit module to add, change, or remove Windows registry key-values efficiently and accurately with simple Ansible code.
Ansible win_regedit — Remove Registry
playbooks · 3
How to automate the deletion of the Windows Registry “Test” path with one key “hello” under a specific hive Windows-like systems with Ansible Playbook.
Ansible Check .NET Framework Version
playbooks · 3
Learn how to check the .NET Framework version on Windows systems with Ansible using the win_reg_stat module. Includes a practical Playbook example.
Ansible win_stat — Verify Windows File
playbooks · 3
Discover how to check if a file exists on Windows systems with Ansible's win_stat module. This guide includes a live Playbook example and execution.
Rolling Update Windows-like systems — Ansible module win_updates
playbooks · 3
How to automate the Windows Update process and rebook if needed on Windows-like systems using Ansible Playbook and win_updates module.
Ansible win_file — Create Windows Dir
playbooks · 2
Create directories on Windows with Ansible win_file module. Set permissions, create nested paths, and manage folder structures with playbook examples.
Ansible win_stat — Check Dir Exists
playbooks · 2
Discover how to check if a directory exists on Windows-like systems using Ansible ansible.windows.win_stat module. Follow along with a practical.
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.
Concatenate Multiple Files in Order with Ansible Template
playbooks · 4
Learn how to concatenate multiple files in a specific order with Ansible. This guide demonstrates using the template module and includes practical code.
Extract an archive in Windows-like systems — Ansible module win_unzip
playbooks · 2
How to automate the extraction of an example ZIP compressed archive with a text file inside creating the output directory on a Windows-like system with.
Ansible fetch — Copy from Windows
playbooks · 3
Copy files seamlessly from Windows remote hosts using Ansible ansible.builtin.fetch module. Effortlessly fetch example.txt to a local directory.
Ansible win_file — Files & Dirs
playbooks · 2
Create files, directories, and symlinks on Windows with ansible.windows.win_file. Set permissions, manage paths, and clean up temp files.
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.
Install Docker in Windows-like systems — Ansible module win_chocolatey
playbooks · 2
How to automate the installation of the latest version of Docker Desktop in your Windows-like system with Ansible Playbook and Chocolatey.
Read file from remote hosts — Ansible module slurp
playbooks · 4
How to automate the read of /proc/cpuinfo file from Linux remote host with Ansible. The file is copied as base 64 encoding and decoded with an Ansible.
Install Docker — Ansible apt Module
playbooks · 5
How to automate the installation of the docker-ce engine in Ubuntu 20.04 LTS x86_64 (or amd64) using Ansible Playbook. The procedure is going to take care.
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.
Copy Multiple Files to Remote Hosts with Ansible Efficiently
playbooks · 3
Discover how to use Ansible fileglob lookup plugin and copy module to efficiently transfer multiple files to remote hosts. Explore practical examples.
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.
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.
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.
Schedule a Cron Job task in Linux — Ansible module cron
playbooks · 5
How to automate the schedule of command execution to a specific minute, hour, day, month, weekday, and user in Linux using cron service.
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.
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.
Ansible URI — POST & Token Auth Demo
playbooks · 4
Use Ansible to send a POST request and retrieve a token from a server. Learn to automate login processes with Ansible's URI module.
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.
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.
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.
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.
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.
Submit a GET request to a REST API endpoint — Interact with web services — Ansible module uri
playbooks · 4
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.
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.
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.
ansible.builtin.template Module — Jinja2 Template Guide
playbooks · 3
Learn ansible.builtin.template: render Jinja2 templates to remote hosts with loops, Ansible facts, and dynamic variables for config files.
Ansible template — Jinja2 Config Files
playbooks · 4
Use the Ansible template module to deploy dynamic configuration files with Jinja2. Variables, loops, conditionals, and real-world template examples.
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.
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.
Install Software on Windows with Ansible — win_chocolatey Module Guide
playbooks · 4
Install, update, and manage Windows software with Ansible's win_chocolatey module. Deploy Chrome, Firefox, VS Code, and any Chocolatey package across.
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..
Install Microsoft Edge on Debian with Ansible
playbooks · 6
Learn how to install Microsoft Edge on Debian using Ansible. Follow our guide for a smooth setup process, including repository and key additions.
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.
Install Google Chrome with Ansible on SUSE Linux
playbooks · 5
Install Google Chrome on SUSE and openSUSE systems with Ansible. Step-by-step playbook guide using rpm_key, zypper_repository, and zypper modules.
Ansible zypper — SUSE Packages
playbooks · 6
Install, update, and remove packages on SUSE and openSUSE with the Ansible zypper module. Repository management, patterns, and playbook examples.
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.
Install Google Chrome in Debian like systems — Ansible module apt_key, apt_repository and apt
playbooks · 4
How to install the latest Google Chrome Stable on a Debian-like workstation (Debian, Ubuntu, Linux Mint, MX Linux, Deepin, AntiX, PureOS, Kali Linux,.
Ansible pause Module — Delays & Prompts
playbooks · 3
Pause Ansible playbook execution with time delays or prompts. Examples with seconds, minutes, and interactive user input.
Ansible user — Change Password
playbooks · 6
Change a Linux user password with the Ansible user module and password_hash: SHA-512 hashes, idempotent salts, Vault-encrypted passwords, and bulk changes.
Ansible user Module — Enable and Unlock
playbooks · 2
Re-enable a locked Linux user account with Ansible: set password_lock: false, restore the /bin/bash shell, and verify access — with playbook examples.
Ansible: Disable and Lock a Linux User Account
playbooks · 2
Disable a Linux user account with Ansible: set password_lock: true and the nologin shell to block all logins — with copy-paste playbook examples.
Ansible win_reboot — Reboot Windows
playbooks · 6
Reboot Windows servers safely with ansible.windows.win_reboot. Complete guide with pre/post delays, timeout tuning, rolling reboots, conditional.
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.
Create Text Files with Ansible copy Module (Playbook Examples)
playbooks · 7
Create and manage text files with Ansible copy module. Complete guide with content parameter, permissions, SELinux, templates, multi-line content.
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.
ansible.builtin.git Module — Clone via SSH
playbooks · 5
Clone Git repositories with Ansible's ansible.builtin.git module over SSH. Configure SSH keys, deploy branches/tags, and handle submodules.
Ansible win_copy — Copy Files to Windows
playbooks · 6
Copy files and folders to Windows remote hosts using ansible.windows.win_copy. Playbook examples with src, dest, content, remote_src, and backup options.
Ansible reboot Module — Reboot Linux
playbooks · 6
Reboot Linux servers with the Ansible reboot module. Complete guide with pre/post delay, timeout, test commands, rolling reboots, kernel updates.
Ansible firewalld — Open Ports RedHat
playbooks · 7
Open and manage firewall ports on RedHat, CentOS, Fedora with Ansible firewalld module. Complete guide with services, ports, rich rules, zones.
Ansible user — Remove Accounts
playbooks · 4
How to remove user accounts with Ansible user module. Delete users, remove home directories, and manage accounts across Linux, macOS, and FreeBSD..
Extract Archives with Ansible — unarchive Module Guide
playbooks · 5
Extract zip, tar.gz, and tar.bz2 archives with the Ansible unarchive module. Copy from local or remote URLs, set permissions, and run handlers on extract.
Ansible user Module — Create Users
playbooks · 7
Create Linux users with ansible.builtin.user: set a hashed password, primary and extra groups, SSH keys and account expiry, with complete playbook examples.
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.
Ansible win_ping — Test Windows Host
playbooks · 5
Use the Ansible win_ping module to test WinRM connectivity and PowerShell availability on Windows hosts. Complete guide with playbook examples,.
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,.
Rolling Update Debian-like systems — Ansible module apt
playbooks · 7
Perform rolling updates on Debian/Ubuntu systems with Ansible apt module — full upgrade, selective updates, serial strategy, and reboot handling.
Ansible Rolling Updates — Patch Servers with Zero Downtime
playbooks · 4
Perform rolling updates on RHEL/CentOS/Fedora with Ansible. Complete guide covering serial batches, pre/post health checks, automatic rollback, kernel.
Ansible fetch Module — Retrieve Files
playbooks · 5
Download files from remote hosts to local machine with ansible.builtin.fetch. Collect logs, configs, and backups with flat, dest, and validate options.
ansible.builtin.copy: Copy Files to Remote Hosts
playbooks · 5
Master ansible.builtin.copy to transfer files, set permissions, create backups, validate configs, and copy directories on remote hosts.
Checkout Git Repository via HTTPS — Ansible git Module Guide
playbooks · 5
Automate Git repository cloning and updates with Ansible git module. Complete guide covering HTTPS checkout, version pinning, sparse checkout, deploy.
ansible.builtin.apt — Install Packages on Debian/Ubuntu
playbooks · 5
Install and manage packages with ansible.builtin.apt on Debian/Ubuntu. Full examples for install, upgrade, remove, cache updates, and .deb files.
Ansible yum and dnf — RHEL Packages
playbooks · 5
Install, update and remove packages on RHEL, Rocky, Alma and Fedora with ansible.builtin.dnf and yum: versions, local RPMs, repos, groups, and update all.
ansible.builtin.debug — Print Variables and Messages
playbooks · 4
Print variables and messages in Ansible with ansible.builtin.debug: msg vs var, registered output, dictionaries, verbosity levels, and common mistakes to avoid.
Ansible stat — Check If Directory Exists
playbooks · 6
Check if a directory or file exists in Ansible with the stat module, then act on it with when: create it only if missing, and verify type, permissions and age.