Skip to main content

Ansible Tutorials

A collection of 21 posts

Ansible Include Tasks
Ansible Modules

Ansible include_tasks Module: Reuse Tasks Across Playbooks

Learn to include tasks for reducing repetitions in playbooks.

· LHB Community

Ansible Cron Module
Ansible Modules

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
Ansible Modules

Ansible Git Module: Manage Git Repositories

This module lets you deal with git repos from your playbooks.

· LHB Community

Ansible Stat Module
Ansible Modules

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

Ansible Variables
Ansible Tutorials

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
Ansible Modules

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

Use Tags in Ansible Playbooks
Ansible Tutorials

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
Ansible Modules

Ansible Debug Module: Display Output During Playbook Execution

Troubleshoot your playbooks for errors with the debug module in Ansible.

· LHB Community

Ansible replace module
Ansible Modules

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

Ansible blocks
Ansible Tutorials

How to Use Ansible Blocks

Make your Playbooks more readable and maintainable using Blocks feature in Ansible.

· LHB Community

Ansible Lineinfile Module
Ansible Modules

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
Ansible Modules

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

handle long running tasks with Ansible
Ansible Tutorials

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
Ansible Tutorials

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
Ansible Modules

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
Ansible Modules

Ansible Ping Module: Check if Host is Reachable

Quickly test if a node is available with Ansible ping command.

· LHB Community

Ansible service module
Ansible Modules

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
Ansible Tutorials

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

Ansible delegate_to
Ansible Tutorials

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
Ansible Modules

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

Clone git repositories with Ansible
Ansible Tutorials

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