# Ansible By Example > The largest collection of practical Ansible tutorials and examples on the web. 850+ articles covering modules, playbooks, roles, troubleshooting, and enterprise automation patterns. Created by Luca Berton, Ansible expert and author. ## About Ansible By Example (ansiblebyexample.com) is a comprehensive learning platform for Ansible automation. Content ranges from beginner module guides to advanced enterprise patterns covering AWS, VMware, Kubernetes, Cisco UCS, and more. All tutorials include working code examples, parameter tables, and real-world playbooks. - Author: Luca Berton (Red Hat Summit & KubeCon speaker, author of multiple Ansible books) - Articles: 850+ - Topics: Ansible modules, playbooks, roles, collections, troubleshooting, enterprise automation - Companion app: [Ansible Playground](https://app.ansiblebyexample.com) ## Getting Started - [How to Install Ansible on Ubuntu](https://www.ansiblebyexample.com/articles/how-to-install-ansible-in-ubuntu): Step-by-step Ansible installation guide - [Ansible Check Mode (Dry Run)](https://www.ansiblebyexample.com/articles/ansible-check-mode-dry-run-test-playbooks): Test playbooks without making changes - [Ansible Modules Cheat Sheet — 50 Most Used](https://www.ansiblebyexample.com/articles/ansible-modules-cheat-sheet-50-most-used): Quick reference for the most common modules - [Ansible Roles Explained](https://www.ansiblebyexample.com/articles/ansible-roles-explained-structure-best-practices): Structure, create, and use roles - [Ansible Loops Guide](https://www.ansiblebyexample.com/articles/ansible-loops-with-items-loop-migration-guide): loop, with_items, with_dict & migration - [Ansible Best Practices Guide](https://www.ansiblebyexample.com/articles/ansible-best-practices-guide): Production-ready playbook patterns - [Ansible delegate_to Explained](https://www.ansiblebyexample.com/articles/ansible-delegate-to-run-tasks-different-hosts): Run tasks on different hosts ## Module Guides - [ping Module](https://www.ansiblebyexample.com/articles/test-remote-host-reachability-ansible-module-ping): Test host availability - [copy Module](https://www.ansiblebyexample.com/articles/create-a-text-file-ansible-module-copy): Create and copy files - [file Module](https://www.ansiblebyexample.com/articles/create-a-directory-ansible-module-file): Create directories, symlinks, set permissions - [template Module](https://www.ansiblebyexample.com/articles/apply-a-file-template-ansible-module-template): Apply Jinja2 templates - [apt Module](https://www.ansiblebyexample.com/articles/install-a-package-in-debian-like-systems-ansible-module-apt): Install packages on Debian/Ubuntu - [yum Module](https://www.ansiblebyexample.com/articles/install-a-package-in-redhat-like-systems-ansible-module-yum): Install packages on RHEL/CentOS - [service/systemd Module](https://www.ansiblebyexample.com/articles/manage-linux-services-with-ansible-systemd-module): Manage Linux services - [user Module](https://www.ansiblebyexample.com/articles/create-user-account-ansible-module-user): Manage user accounts - [git Module](https://www.ansiblebyexample.com/articles/checkout-git-repository-https-ansible-module-git): Clone and checkout git repos - [stat Module](https://www.ansiblebyexample.com/articles/check-if-a-file-exists-ansible-module-stat): Check file/directory existence - [debug Module](https://www.ansiblebyexample.com/articles/print-text-or-variable-during-execution-ansible-module-debug): Print variables during execution - [unarchive Module](https://www.ansiblebyexample.com/articles/extract-an-archive-ansible-module-unarchive): Extract archives on remote hosts - [get_url Module](https://www.ansiblebyexample.com/articles/download-a-file-ansible-module-get-url): Download files from HTTP/HTTPS - [cron Module](https://www.ansiblebyexample.com/articles/schedule-a-cron-job-task-in-linux-ansible-module-cron): Schedule cron jobs - [win_chocolatey Module](https://www.ansiblebyexample.com/articles/install-google-chrome-in-windows-like-systems-ansible-module-winchocolatey): Install Windows software via Chocolatey - [win_ping Module](https://www.ansiblebyexample.com/articles/test-windows-host-availability-ansible-module-winping): Test Windows host connectivity ## Troubleshooting - [100 Ansible Error Solutions](https://www.ansiblebyexample.com/errors): Searchable database of common Ansible errors - [Connection Failed](https://www.ansiblebyexample.com/articles/connection-failed-ansible-troubleshooting): SSH connection troubleshooting - [Could Not Resolve Hostname](https://www.ansiblebyexample.com/articles/fix-ansible-could-not-resolve-hostname): DNS & inventory troubleshooting - [Privilege Escalation Errors](https://www.ansiblebyexample.com/articles/privilege-escalation-errors-ansible-troubleshooting): sudo/become issues - [Indentation Errors](https://www.ansiblebyexample.com/articles/indentation-error-ansible-troubleshooting): YAML formatting fixes - [Vault Decrypt Errors](https://www.ansiblebyexample.com/articles/ansible-troubleshooting-attempting-to-decrypt-but-no-vault-secrets-found): Vault secrets troubleshooting - [ansible-lint name[missing]](https://www.ansiblebyexample.com/articles/ansible-troubleshooting-error-502-name-missing): Fix lint rule 502 - [ansible-lint no-tabs](https://www.ansiblebyexample.com/articles/ansible-troubleshooting-error-203-no-tabs): Fix lint rule 203 ## Enterprise Automation - [HashiCorp Vault + AAP Credentials](https://www.ansiblebyexample.com/articles/managing-ansible-automation-platform-credentials-hashicorp-vault): Dynamic secrets management at scale - [Enterprise Network Automation](https://www.ansiblebyexample.com/articles/ansible-enterprise-network-automation-cisco-juniper-arista): Cisco, Juniper, Arista multi-vendor automation - [Ansible + Terraform Pipeline](https://www.ansiblebyexample.com/articles/ansible-terraform-enterprise-infrastructure-as-code-pipeline): IaC pipeline integration - [Kubernetes Automation](https://www.ansiblebyexample.com/articles/ansible-kubernetes-operators-cluster-lifecycle-deployment): Cluster lifecycle and Helm deployments - [Compliance as Code (CIS/STIG)](https://www.ansiblebyexample.com/articles/ansible-compliance-as-code-cis-benchmarks-stig-hardening): Security hardening automation - [VMware vSphere Automation](https://www.ansiblebyexample.com/articles/ansible-vmware-vsphere-enterprise-virtual-infrastructure): VM provisioning and datacenter management - [AWS Cloud Automation](https://www.ansiblebyexample.com/articles/ansible-aws-cloud-automation-ec2-rds-s3-infrastructure): EC2, RDS, S3, VPC automation - [Event-Driven Automation (EDA)](https://www.ansiblebyexample.com/articles/ansible-event-driven-automation-eda-controller-reactive-infrastructure): Auto-remediation with EDA Controller - [Windows Enterprise (AD/GPO)](https://www.ansiblebyexample.com/articles/ansible-windows-enterprise-active-directory-gpo-fleet-management): Active Directory and fleet management - [CI/CD Pipelines](https://www.ansiblebyexample.com/articles/ansible-cicd-integration-gitlab-github-actions-jenkins-pipeline): GitHub Actions, GitLab CI, Jenkins integration - [Cisco UCS Automation](https://www.ansiblebyexample.com/articles/ansible-cisco-ucs-automation-server-profiles-vlans-data-center): Bare-metal server profiles and VLANs - [Ansible Automation Platform Guide](https://www.ansiblebyexample.com/articles/ansible-automation-platform-aap-guide): AAP installation and workflows - [Ansible AWX Guide](https://www.ansiblebyexample.com/articles/what-is-ansible-awx-ansible-awx): Open-source automation controller ## Comparisons - [Ansible vs Terraform](https://www.ansiblebyexample.com/articles/ansible-vs-terraform-comparison-which-tool): When to use which tool - [Ansible vs Puppet vs Chef vs Salt](https://www.ansiblebyexample.com/articles/ansible-vs-puppet-vs-chef-vs-salt-comparison): Configuration management tools compared ## Key Concepts - [Ansible Vault Encryption](https://www.ansiblebyexample.com/articles/ansible-vault-encrypt-decrypt-playbook-files): Encrypt sensitive data - [Ansible Galaxy Guide](https://www.ansiblebyexample.com/articles/ansible-galaxy-guide-collections-roles): Find and use community content - [ansible-lint Guide](https://www.ansiblebyexample.com/articles/ensuring-quality-with-ansible-lint-a-guide-to-best-practices): Code quality and best practices - [Ansible Configuration (ansible.cfg)](https://www.ansiblebyexample.com/articles/an-in-depth-guide-to-ansible-config-managing-ansible-configuration): Configuration file management - [RHCE EX294 Exam Guide](https://www.ansiblebyexample.com/articles/red-hat-certified-engineer-rhce-ex294-exam-guide): Certification preparation ## Windows Automation - [Configure Windows for Ansible (WinRM)](https://www.ansiblebyexample.com/articles/configure-a-windows-host-for-ansible-ansible-winrm): WinRM setup guide - [Windows Registry Management](https://www.ansiblebyexample.com/articles/add-windows-registry-on-windows-like-systems-ansible-module-winregedit): Registry operations - [Copy Files to Windows](https://www.ansiblebyexample.com/articles/copy-files-to-windows-remote-hosts-ansible-module-win-copy): win_copy module guide ## Browse All Content - [All Articles](https://www.ansiblebyexample.com/articles): 850+ tutorials and guides - [Categories](https://www.ansiblebyexample.com/categories): Browse by topic - [Tags](https://www.ansiblebyexample.com/tags): Browse by tag - [Error Database](https://www.ansiblebyexample.com/errors): 100 common Ansible errors with solutions - [Books](https://www.ansiblebyexample.com/books): Published Ansible books by Luca Berton - [Learning Paths](https://www.ansiblebyexample.com/learning-paths): Structured learning tracks ## Optional - [Sitemap](https://www.ansiblebyexample.com/sitemap.xml): Full sitemap with all URLs - [Developers / API](https://www.ansiblebyexample.com/developers): Developer resources and API docs - [About](https://www.ansiblebyexample.com/about): About Ansible By Example - [Contact](https://www.ansiblebyexample.com/contact): Get in touch