Modules Tutorials
Explore Ansible modules for system administration, file management, package installation, and more.
121
Tutorials
54
Beginner
67
Advanced
Ansible Configure Centralized Logging — Complete Guide
Set up ELK Stack or Loki centralized logging with Ansible. Hands-on, tested examples and best practices for Ansible Configure Centralized Logging.
Ansible Configure DNS Servers — Complete Guide
Set up BIND, Unbound, and CoreDNS servers with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible Configure DNS Servers.
Ansible Configure Firewall Rules — Complete Guide
Manage iptables, firewalld, and ufw rules with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible Configure Firewall Rules.
Ansible Configure LDAP Authentication — Complete Guide
Set up LDAP and Active Directory authentication with Ansible. Hands-on, tested examples and best practices for Ansible Configure LDAP Authentication.
Ansible Configure Log Rotation — Complete Guide
Set up logrotate with size limits and compression using Ansible. Tested on real machines with clear, copy-paste examples.
Ansible Configure NTP Time Sync — Complete Guide
Set up NTP or chrony time synchronization with Ansible. Hands-on, tested examples and best practices for Ansible Configure NTP Time Sync.
Ansible Configure Nginx Reverse Proxy — Complete Guide
Set up Nginx as reverse proxy with SSL and load balancing. Hands-on, tested examples and best practices for Ansible Configure Nginx Reverse Proxy.
Ansible Configure Prometheus Monitoring — Complete Guide
Deploy Prometheus and node exporters with Ansible automation. Hands-on, tested examples and best practices for Ansible Configure Prometheus Monitoring.
Ansible Copy File from Local to Remote — Complete Guide
Copy files from local to remote hosts with Ansible copy module. Handle permissions, ownership, backup, recursive copies, and content generation.
Ansible Create File with Content — copy, template, lineinfile
Create files with content on remote hosts using Ansible. Use copy content, template, lineinfile, and blockinfile modules for file generation and editing.
Ansible Delete File — Remove Files and Directories
Delete files and directories on remote hosts with Ansible file module. Remove single files, directories, wildcards, and conditional deletions.
Ansible Deploy Docker Containers — Complete Guide
Deploy Docker containers with Ansible community.docker collection. Hands-on, tested examples and best practices for Ansible Deploy Docker Containers.
Ansible Deploy Java Applications — Complete Guide
Deploy WAR and JAR files to Tomcat and Spring Boot with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible Elasticsearch Cluster Deployment
Deploy and manage Elasticsearch clusters with Ansible including node roles, security, index lifecycle management, and performance tuning
Ansible Grafana Loki Log Aggregation
Deploy Grafana Loki and Promtail with Ansible for scalable log aggregation, multi-tenant storage, LogQL queries, and alerting
Ansible HAProxy Load Balancer Configuration
Deploy and configure HAProxy load balancer with Ansible for high availability, SSL termination, health checks, and backend server management
Ansible Install Multiple Packages — Complete Guide
Install multiple packages in a single task with apt, yum, dnf, and package modules. With clear, copy-paste, step-by-step examples.
Ansible Manage Container Registry — Complete Guide
Deploy Harbor or private Docker registries with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible Manage Container Registry.
Ansible Manage Python Virtual Environments — Complete Guide
Create Python virtualenvs and install packages with Ansible. Hands-on, tested examples and best practices for Ansible Manage Python Virtual Environments.
Ansible Manage SELinux Policies — Complete Guide
Configure SELinux modes, booleans, and file contexts with Ansible. Hands-on, tested examples and best practices for Ansible Manage SELinux Policies.
Ansible Manage Systemd Services — Complete Guide
Create systemd unit files and manage service states with Ansible. Tested on real machines with clear, copy-paste examples.
Exciting Ansible Updates: Core, Community, AWX, and DevTools
The Ansible ecosystem is buzzing with new releases and updates! Ansible Core 2.17.1 now supports running as a non-root user, while the Community Package.
Ansible Project 2022 Conclusion & 2023 Outlook: Key Developments
Explore Ansible's milestones from 2022 and what's ahead for 2023, including major releases, community growth, and evolving automation trends.
Ansible Rename File — Move and Rename Files on Remote Hosts
Rename and move files on remote hosts with Ansible. Use command mv, copy+file, and ansible.builtin.stat for conditional file rename operations.
Ansible Send Email Notifications — Complete Guide
Send email alerts from playbooks on success or failure. Hands-on, tested examples and best practices for Ansible Send Email Notifications.
Ansible Service Module — Start Stop Restart Enable Services
Manage system services with Ansible service module. Start, stop, restart, reload, and enable services on boot. Supports systemd, SysV init, and BSD.
Ansible Set Up Load Balancer — Complete Guide
Configure HAProxy and Nginx load balancers with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible Set Up Load Balancer.
Ansible Set Up VPN Server — Complete Guide
Deploy WireGuard or OpenVPN servers with Ansible automation. Hands-on, tested examples and best practices for Ansible Set Up VPN Server.
Ansible Touch File — Create Empty Files and Update Timestamps
Create empty files and update timestamps with Ansible file module state touch. Set permissions, ownership, and modification times on remote hosts.
Ansible Wait for Port to be Open — Complete Guide
Wait for a service port to become available after restart using wait_for module. Tested on real machines with clear, copy-paste examples.
Ansible Write to File — Append Lines and Generate Content
Write content to files on remote hosts with Ansible. Append lines, generate files, manage configuration blocks, and build files from variables and templates.
Ansible assemble Module — Combine File Fragments into Single File
Merge multiple file fragments into a single configuration file on remote hosts. With clear, copy-paste, step-by-step examples.
Ansible bower Module — Manage Frontend Packages with Bower
Install and manage frontend JavaScript packages using Bower package manager. Hands-on, tested examples and best practices for Ansible bower Module.
Ansible bundler Module — Manage Ruby Gems with Bundler
Install Ruby gem dependencies using Bundler in Ansible automation. Hands-on, tested examples and best practices for Ansible bundler Module.
Ansible capabilities Module — Manage Linux File Capabilities
Set and manage Linux file capabilities (cap_net_bind, cap_sys_admin) on executables. With clear, copy-paste, step-by-step examples.
Ansible cargo Module — Install Rust Packages with Cargo
Build and install Rust crates using Cargo package manager with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible composer Module — Manage PHP Dependencies with Composer
Install and update PHP project dependencies using Composer with Ansible. Hands-on, tested examples and best practices for Ansible composer Module.
Ansible cpanm Module — Install Perl Modules from CPAN
Install Perl modules from CPAN using cpanminus with Ansible automation. Tested on real machines with clear, copy-paste examples.
Ansible dconf Module — Manage GNOME Desktop Settings
Configure GNOME desktop settings and preferences using dconf with Ansible. Hands-on, tested examples and best practices for Ansible dconf Module.
Ansible debconf Module — Configure Debian Package Questions
Pre-seed debconf answers for Debian/Ubuntu package installations with Ansible. Hands-on, tested examples and best practices for Ansible debconf Module.
Ansible deploy_helper Module — Manage Deployment Directory Structure
Create and manage Capistrano-style deployment directory structures with Ansible. With clear, copy-paste, step-by-step examples.
Ansible docker_network Module — Manage Docker Networks
Create, configure, and remove Docker networks for container communication. Hands-on, tested examples and best practices for Ansible docker_network Module.
Ansible docker_volume Module — Manage Docker Volumes
Create and manage Docker volumes for persistent container storage with Ansible. With clear, copy-paste, step-by-step examples.
Ansible for Database Administrators — Complete Guide
Ansible for DBAs: PostgreSQL, MySQL, MongoDB automation including backups, replication, and upgrades. With clear, copy-paste, step-by-step examples.
Ansible get_url — Download Files
Download files from URLs with ansible.builtin.get_url. Working examples with checksum verification, authentication, proxy support, headers, and timeout.
Ansible git_config Module — Manage Git Configuration Settings
Set and query git config values (global, system, local) with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible github_release Module — Manage GitHub Releases
Create and query GitHub releases, download assets, and manage release tags. Hands-on, tested examples and best practices for Ansible github_release Module.
Ansible grafana_dashboard Module — Manage Grafana Dashboards
Import, export, and manage Grafana dashboards programmatically with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible htpasswd Module — Manage Apache htpasswd Files
Create and manage HTTP basic authentication password files for Apache/Nginx. With clear, copy-paste, step-by-step examples.
Ansible java_cert Module — Manage Java Keystore Certificates
Import and manage SSL certificates in Java keystores (cacerts) with Ansible. Hands-on, tested examples and best practices for Ansible java_cert Module.
Ansible jenkins_job Module — Manage Jenkins Jobs
Create, configure, enable, disable, and delete Jenkins CI/CD jobs with Ansible. Hands-on, tested examples and best practices for Ansible jenkins_job Module.
Ansible kernel_blacklist Module — Blacklist Kernel Modules
Prevent Linux kernel modules from loading by managing modprobe blacklist files. Tested on real machines with clear, copy-paste examples.
Ansible listen_ports_facts Module — Gather Listening Port Facts
Discover which ports are open and listening on remote hosts with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible lxd_container Module — Manage LXD Containers
Create, start, stop, and configure LXD system containers with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible maven_artifact Module — Download Maven Artifacts
Download JAR files and artifacts from Maven repositories with Ansible. Hands-on, tested examples and best practices for Ansible maven_artifact Module.
Ansible mysql_db Module — Manage MySQL Databases
Create, drop, dump, and import MySQL/MariaDB databases with Ansible automation. Tested on real machines with clear, copy-paste examples.
Ansible mysql_user Module — Manage MySQL Users and Privileges
Create MySQL/MariaDB users, set passwords, and manage database privileges. Hands-on, tested examples and best practices for Ansible mysql_user Module.
Ansible npm Module — Manage Node.js Packages with npm
Install, update, and manage Node.js packages globally or per-project with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible nsupdate Module — Manage DNS Records Dynamically
Add, modify, and delete DNS records using dynamic DNS updates (RFC 2136). With clear, copy-paste, step-by-step examples.
Ansible osx_defaults Module — Manage macOS System Preferences
Read and write macOS defaults (preferences) for apps and system settings. Tested on real machines with clear, copy-paste examples.
Ansible pip_package_info Module — Get Installed pip Package Info
Query information about installed Python pip packages on remote hosts. Hands-on, tested examples and best practices for Ansible pip_package_info Module.
Ansible pkgng Module — Manage FreeBSD Packages
Install, remove, and manage packages on FreeBSD using pkg with Ansible. Hands-on, tested examples and best practices for Ansible pkgng Module.
Ansible rabbitmq_plugin Module — Manage RabbitMQ Plugins
Enable and disable RabbitMQ plugins for message broker functionality. Tested on real machines with clear, copy-paste examples.
Ansible rabbitmq_user Module — Manage RabbitMQ Users
Create RabbitMQ users, set passwords, and configure virtual host permissions. With clear, copy-paste, step-by-step examples.
Ansible rabbitmq_vhost Module — Manage RabbitMQ Virtual Hosts
Create and delete RabbitMQ virtual hosts for multi-tenant message isolation. Hands-on, tested examples and best practices for Ansible rabbitmq_vhost Module.
Ansible raw Module — Run Commands Without Python
Use ansible.builtin.raw to execute commands on hosts without Python installed. Bootstrap Python, configure network devices, and manage minimal systems.
Ansible redis_info Module — Gather Redis Server Information
Collect Redis server info, stats, and configuration data with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible rhsm_repository Module — Manage RHEL Subscription Repos
Enable and disable Red Hat Subscription Manager repositories with Ansible. With clear, copy-paste, step-by-step examples.
Ansible script — Local Scripts Remote
Use ansible.builtin.script to transfer and execute local scripts on remote hosts without copying them first. Run Bash, Python, and PowerShell scripts.
Ansible shell vs command Module: When to Use Each
Ansible shell vs command module compared — when to use pipes, redirects, and environment variables. Learn best practices and why command is preferred over.
Ansible ssh_config Module — Manage SSH Client Configuration
Add, modify, and remove SSH client config entries (~/.ssh/config) with Ansible. With clear, copy-paste, step-by-step examples.
Ansible subversion Module — Deploy Code from SVN Repositories
Checkout and update Subversion repositories on remote hosts with Ansible. Tested on real machines with clear, copy-paste examples.
Fix Ansible Galaxy Install Errors
Fix ansible-galaxy install errors for collections and roles. Resolve timeout, authentication, namespace, and dependency issues with step-by-step solutions.
Ansible troubleshooting — Error markupsafe
Resolve the No module named markupsafe error in Ansible by reinstalling Ansible, ansible-lint, and python-markupsafe via Homebrew.
Ansible troubleshooting — Error meta-runtime
Fix the Ansible Lint meta-runtime error — requires_ansible version constraints in meta/runtime.yml for collections. With tested, real-world examples.
Ansible wait_for_connection — Host Ready
Use ansible.builtin.wait_for_connection to wait for a host to become reachable after reboot, provisioning, or network changes. Handle SSH and WinRM.
Ansible win_get_url — Download Files on Windows Hosts
Download files to Windows hosts with ansible.windows.win_get_url. Handle proxies, checksums, authentication, and TLS for remote file downloads.
Ansible with Apache Kafka — Complete Automation Guide
Deploy Kafka brokers, topics, ACLs, and Schema Registry with Ansible automation. With clear, copy-paste, step-by-step examples.
Ansible with Ceph Storage — Complete Automation Guide
Deploy Ceph storage clusters with monitors, OSDs, and RGW using Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with Consul — Complete Automation Guide
Deploy HashiCorp Consul clusters for service discovery and KV config with Ansible. Hands-on, tested examples and best practices for Ansible with Consul.
Ansible with Datadog — Complete Automation Guide
Install Datadog agents, configure checks, and manage monitors with Ansible. Hands-on, tested examples and best practices for Ansible with Datadog.
Ansible with Elasticsearch — Complete Automation Guide
Deploy Elasticsearch clusters, configure indices, and manage lifecycle policies with Ansible. With clear, copy-paste, step-by-step examples.
Ansible with FreeIPA Identity — Complete Automation Guide
Automate FreeIPA deployment, users, groups, and DNS with Ansible. Hands-on, tested examples and best practices for Ansible with FreeIPA Identity.
Ansible with GitLab — Complete Automation Guide
Deploy self-hosted GitLab, runners, CI/CD pipelines, and backups with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with Grafana — Complete Automation Guide
Automate Grafana deployment, dashboards, datasources, and alerting with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with Harbor Container Registry — Complete Automation Guide
Deploy Harbor private container registry with Ansible automation. Hands-on, tested examples and best practices for Ansible with Harbor Container Registry.
Ansible with Jenkins — Complete Automation Guide
Configure Jenkins controllers, agents, plugins, jobs, and pipelines with Ansible. With clear, copy-paste, step-by-step examples.
Ansible with Keycloak SSO — Complete Automation Guide
Deploy Keycloak identity provider and configure SSO realms with Ansible. Hands-on, tested examples and best practices for Ansible with Keycloak SSO.
Ansible with LXC LXD Containers — Complete Automation Guide
Manage LXC and LXD system containers and profiles with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with MinIO Object Storage — Complete Automation Guide
Deploy MinIO S3-compatible object storage clusters with Ansible. Hands-on, tested examples and best practices for Ansible with MinIO Object Storage.
Ansible with MongoDB — Complete Automation Guide
Automate MongoDB installation, replica sets, sharding, users, and backups with Ansible. With tested, real-world examples.
Ansible with MySQL MariaDB — Complete Automation Guide
Automate MySQL and MariaDB deployment, users, grants, backups, and replication with Ansible. Tested, copy-paste examples included.
Ansible with NFS Server — Complete Automation Guide
Deploy and manage NFS server exports and client mounts with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with Nagios Monitoring — Complete Automation Guide
Automate Nagios Core deployment, plugins, and host monitoring with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with New Relic — Complete Automation Guide
Deploy New Relic infrastructure agents and APM with Ansible automation. Follow clear, copy-paste examples and real-world usage notes for Ansible with New Relic.
Ansible with Nexus Repository Manager — Complete Automation Guide
Configure Sonatype Nexus for Maven, npm, Docker, and PyPI with Ansible. Hands-on, tested examples and best practices for Ansible with Nexus Repository Manager.
Ansible with Podman — Complete Automation Guide
Manage Podman containers, pods, and systemd integration with Ansible. Hands-on, tested examples and best practices for Ansible with Podman.
Ansible with PostgreSQL — Complete Automation Guide
Automate PostgreSQL installation, configuration, users, databases, backups, and replication with Ansible. With tested, real-world examples.
Ansible with RabbitMQ — Complete Automation Guide
Configure RabbitMQ brokers, exchanges, queues, users, and clustering with Ansible. With clear, copy-paste, step-by-step examples.
Ansible with Redis — Complete Automation Guide
Deploy and configure Redis clusters, sentinel, and ACLs with Ansible automation. Hands-on, tested examples and best practices for Ansible with Redis.
Ansible with Samba Active Directory — Complete Automation Guide
Configure Samba AD domain controller and file shares with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible with Splunk — Complete Automation Guide
Deploy Splunk forwarders, indexers, and configure inputs with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible with Splunk.
Ansible with Vault Secrets Engine — Complete Automation Guide
Integrate HashiCorp Vault for dynamic secrets and PKI with Ansible automation. With clear, copy-paste, step-by-step examples.
Ansible with Zabbix Monitoring — Complete Automation Guide
Deploy Zabbix server, agents, and configure monitoring with Ansible. Hands-on, tested examples and best practices for Ansible with Zabbix Monitoring.
Ansible yarn Module — Manage Node.js Packages with Yarn
Install and manage JavaScript packages using Yarn package manager. Tested on real machines with clear, copy-paste examples.
Configure WSL in Domain — Step-by-Step
Discover how to configure WSL in a domain environment. This guide covers joining a domain, installing necessary packages, and setting up Kerberos.
Crafting and Publishing Your Custom Ansible Collection on Automation Hub
Learn to create and publish a custom Ansible Collection "test.test" on Automation Hub. Follow steps to initialize, customize, build, and upload your.
Creating a New Ansible Collection: A Step-by-Step Guide
Create a new Ansible Collection "test.test" with ansible-galaxy. Follow steps to initialize, build, and verify the collection, resulting in a.
Fixing Kubernetes PersistentVolume Configuration Error
Fix the Kubernetes PersistentVolume strict decoding error for unknown field spec.PersistentVolumeReclaimPolicy. Step-by-step guide with correct YAML.
Highlights from Ansible Community Newsletter — Issue #127
Discover the latest in Ansible with Issue #127 of the Ansible Community Newsletter, featuring updates on releases, community events, tool comparisons.
Ansible Community Insights: The Bullhorn Newsletter Issue #128
Dive into the latest Ansible Community Newsletter, Issue 128, packed with updates on releases, events like FOSDEM, new collections, and community.
Fix Ansible WinRM Errors — PowerShell
Resolve WinRM configuration errors for Ansible Windows automation. Fix HTTPS listeners, TrustedHosts, certificate issues, and firewall rules.
Upgrade Ansible on macOS — Homebrew
Keeping Your Ansible Environment Up-to-Date with Homebrew Step-by-step Ansible tutorial with practical examples and best practices.
How to Use Ansible with Docker
Build images, run containers, and manage Docker infrastructure with Ansible. With clear, copy-paste, step-by-step examples.
How to Use Ansible with Git
Automate git operations including clone, pull, checkout, and deploy from repos. Hands-on, tested examples and best practices for How to Use Ansible with Git.
How to Install Ansible on Ubuntu 20.04, 22.04, and 24.04
Step-by-step guide to installing Ansible on Ubuntu using apt, PPA, and pip. Covers Ubuntu 20.04, 22.04, and 24.04 with version comparison.
Integrate Splunk Logging with Ansible Automation Controller
Learn to integrate Splunk logging with Ansible Automation Controller. Follow this guide for setting up Splunk HTTP Event Collector and configuring log.
Microsoft SQL Server: Performance Tuning Essentials
Learn how to optimize Microsoft SQL Server performance, enhance query tuning, and improve database efficiency with Luca Berton's course on Coursera.
Coursera Technical Troubleshooting: Diagnostics, Networks, Customers
Learn to resolve complex IT issues, manage networks, and communicate technical solutions effectively. Elevate your IT support skills today!
Where Are Ansible Collections Installed?
Find where Ansible collections are installed, configure COLLECTIONS_PATHS, and manage multiple collection locations. Default paths for all platforms.
ansible.mysql Collection 5.0 — MySQL Automation Guide
Use the ansible.mysql collection 5.0 to manage MySQL databases, users, replication, and queries. Covers migration from community.mysql and new features.
Want to practice these tutorials?
Try the AI Playground for interactive learning with instant feedback.