Jul 22, 22
Current ansible-playbook Path - playbook_dir Magic Variable - Ansible Tip and Tricks
How to display the current execution Ansible Playbook file system path using the "playbook_dir" Magic Variables for debugging and simplifying your automation journey.
May 30, 22
Ansible Magic Variables - Ansible Tip and Tricks
How to Ansible Internal Variables “Magic” could simplify our automation journey: running Ansible version, inventory details, and execution options
Mar 9, 22
Ansible troubleshooting - VARIABLE IS NOT DEFINED! ansible_hostname
Root cause analysis when the variable is not misspelled or not defined using the ansible_hostname internal variable and gather_facts boolean.
Jan 15, 22
How to Pass Variables to Ansible Playbook in command line? - Ansible extra variables
How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. Very useful to combine some script, automation, or shell variables. Example with fruit variable defined as “banana” and changed to “apple” or “raspberry”.
Nov 18, 21
Ansible troubleshooting - undefined variable
How to reproduce the undefined variable error in Ansible, troubleshooting, and fix to be able to successfully print the value of a variable on screen.