variable

The run_once statement in Ansible

Introduction Ansible is a powerful automation tool that makes managing IT infrastructure easier.

Continue reading

Current ansible-playbook Path - playbook_dir Magic Variable - Ansible Tip and Tricks

How to display the Current ansible-playbook Path? I’m going to show you how to Use the “playbook_dir” Ansible Magic Variable in Ansible Playbook with a live Playbook and some simple Ansible code.

Continue reading

Master Ansible Magic Variables: A Practical Playbook Guide

How to Use Ansible Magic Variables in Ansible Playbook I’m going to show you a live Playbook and some simple Ansible code.

Continue reading

Write a Variable to a File - Ansible module copy vs template

How to write a variable to file with Ansible? From a simple value or the result of complex command execution on the target node often we have the need to write the result to a file.

Continue reading

Ansible troubleshooting - VARIABLE IS NOT DEFINED! ansible_hostname

Introduction Today we’re going to talk about Ansible troubleshooting, specifically about VARIABLE IS NOT DEFINED!

Continue reading