Ansible Variables and Variables Precedence What is a variable? A variable is reference to data stored in a computer program. How to define variable in Ansible? Variables Defined in Inventory Variables can be defined in inventory in two ways – 1. Host variables [web]host1 http_port=80host2 http_port=443 2. Group variables [web]host1host2[web:vars]http_port=80proxy=proxy.example.com Variables Defined in a Playbook …
Continue reading “Ansible Variables and Variables Precedence”