Ansible var file var.yml:
---
OS: test123
OStype(gb): test
disk size(gb): test
main.yml
---
- name: read varibale-
hosts: localhost
gather_facts: no
tasks:
- include_vars: var.yml
- debug:
msg: "{{ OStype(gb) }}"
Error:
"msg": "The task includes an option with an undefined variable. The error was: 'OStype' is undefined\n\