How to use different Ansible variables with examples ...
https://www.golinuxcloud.com/ansible-v03.12.2021 · Similarly we can create group_vars directory under lab1 and use the name of the group to create a new file which will contain the list of variables. Next modify the hosts: entry with the group name instead of server name in the playbook file.. Defining variables in playbook. The simplest way to define variables is to put a vars section in your playbook with the names and …