I am in the process of migrating to Ansible roles model and I have the following structure -
…/roles/vms/tasks/main.yml
`
I am in the process of migrating to Ansible roles model and I have the following structure -
…/roles/vms/tasks/main.yml
`
What is your file structure? You show a vms role, but not a vmcreation role, but yet your playbook includes the vmcreation role?
I think I know what you’re after. Try this.
Have two files in …/roles/vms/vars, namely,
…/roles/vms/vars/vmname81.yml
`
Sorry, the include_vars should be:
`
Thank you, Zilla. I got a simpler solution for this question which I posted at Stack Overflow wherein I didn’t have to split vars files. I have had success following it.