© Peter Membrey and Shaun R Smith 2022
S. R. Smith, P. MembreyBeginning Ansible Concepts and Applicationhttps://doi.org/10.1007/978-1-4842-8173-4_6

6. It’s All Variable, That’s a Fact!

Shaun R Smith1   and Peter Membrey2
Hong Kong, New Territories, Hong Kong
Kowloon, Hong Kong

We are building up a good foundation for what Ansible is all about and how it fits together. Back in Chapter 3 while talking about inventories, we touched on the concept of variables – defining a variable named http_port with a value of 8080 to the group of hosts referred to as webservers. Since then, that variable has not been used, as there has been no obvious use case – but as the complexity of the playbook increases, it will become apparent that variables are of major ...

Get Beginning Ansible Concepts and Application: Provisioning, Configuring, and Managing Servers, Applications, and Their Dependencies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.