Ansible Tutorials
A collection of 20 posts
Ansible include_tasks Module: Reuse Tasks Across Playbooks
Learn to include tasks for reducing repetitions in playbooks.
ยท LHB Community
Ansible Cron Module: Manage Cron Jobs on Remote Systems
The cron module in Ansible lets you run and manage the cron jobs on remote systems.
ยท LHB Community
Ansible Git Module: Manage Git Repositories
This module lets you deal with git repos from your playbooks.
ยท LHB Community
Ansible Stat Module: Get Detailed Info About Files on Target Hosts
The stat module in Ansible lets you deal with files based on their stats like size, mode and timestamps. Learn some practical examples.
ยท LHB Community
Examples of Including Variables in Ansible
Learn how to include variables in Ansible effectively to customize your configuration and streamline repetitive tasks with these examples.
ยท LHB Community
Ansible File Module: Manage Files and Directories on Remote Nodes
Manage files and folders, their ownership and permissions with the built-in file module of Ansible.
ยท LHB Community
How to Use Tags in Ansible Playbooks
Manage specific tasks in a large playbook using tags in Ansible. Here are some real-world usecases.
ยท LHB Community
Ansible Debug Module: Display Output During Playbook Execution
Troubleshoot your playbooks for errors with the debug module in Ansible.
ยท LHB Community
Ansible Replace Module: Replace Strings and Lines
Learn to replace strings and lines across multiple systems or files with the Ansible replace module.
ยท LHB Community
How to Use Ansible Blocks
Make your Playbooks more readable and maintainable using Blocks feature in Ansible.
ยท LHB Community
Ansible Lineinfile Module: Manage Lines in Text Files
Learn to use the lineinfile module of Ansible with these real world examples.
ยท LHB Community
Ansible Apt Module: Manage Ubuntu and Debian Packages
Ansible's built-in APT module lets you manage packages on Ubuntu and Debian based nodes.
ยท Umair Khurshid
How to Handle Long Running Tasks in Ansible
Facing timeouts? Here is how you can handle tasks that take a long time to complete in Ansible.
ยท LHB Community
Ansible Dry Run: Running Playbook in Check Mode
Not sure of things with your playbook? Here's how you can test your Ansible playbook by using the dry run feature.
ยท LHB Community
Ansible Shell Module: Execute Shell Commands on Target Systems
Shell module in Ansible is a powerful tool for executing shell commands on remote hosts, but it comes with maintenance risks.
ยท LHB Community
Ansible Ping Module: Check if Host is Reachable
Quickly test if a node is available with Ansible ping command.
ยท LHB Community
Ansible Service Module: Manage Services
The service module in Ansible comes in handy for managing services across a variety of platforms.
ยท LHB Community
Using when Function in Ansible
Here are several practical examples of using the when functionality in Ansible to only run the tasks when certain conditions are matched.
ยท LHB Community
Running Tasks on Different Remote Systems Using delegate_to in Ansible
Using delegate_to, you can execute a particular task on a different specific host or group. Learn more about it with these practical examples.
ยท LHB Community
How to Clone a Git Repository with Ansible
Need to clone a Git repo on the remote node in your Ansible setup? Here's how to do that.
ยท LHB Community