Ansible Tutorials
A collection of 21 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

Ansible Copy Module: Copy Files to Remote Targets
The Copy module in Ansible comes in handy in your setup. Learn some 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