Skip to the content.

Ansible - Variables 🔡

Description 👀

Variables store information that varies with each host. Variables can be used to store information about a host, such as its IP address, hostname, or operating system.

Variables can also be used to store information about a group of hosts, such as the name of a database server or the name of a web server.

To use a variable, you must enclose the variable name in double curly braces


Basics 📝


Examples 🧩


â†Šī¸