If the variables are host specific as you first indicate, you can use
host variables or group variables
You need to have the specific directory structure :
- hosts (file)
- host_vars/ (directory)
- group_vars/ (directory)
$ cat hosts
[webserver]
linuxserv
$ cat host_vars/linuxserv
---
ansible_connection: local
ansible_user: aa12
ENVT: aa12
MODULE: tomweb
RELEASE: 1.2
$ cat group_vars/webserver
---
webserver: apache
Now you run the playbook with those hosts and the variables will be
usable from each hosts
You can actually have different inventory names and different actual
names using this
You can group hosts and use group_vars directory
The host file is an ini file (or executable), while the host and group
vars file are json/yaml files (that is why they have the three dashes)
For more info look at the documentation, it is very clearly explained :
http://docs.ansible.com/ansible/intro_inventory.html