Hello,

I would like to set a lot of parameters when playing my playbook, depending 
on the server/user where it will be deployed so the idea is to set it in 
the hosts file.

It doesn't seem to work as my varaibles are no set, here is what I plan to 
do:

[webserver]
linuxserv ansible_connection=local ansible_user=aa12 
extra-vars="@/home/root/vars/vars.json"

running the playbook this way:
 ansible-playbook deploy.yml

and with vars.json:

{
  "ENVT": "aa12",
  "MODULE": "tomweb",
  "RELEASE": "1.2",
}

Is this possible or do I have to try to load the vars parameter file in the 
playbook ?

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0db79072-4116-44a3-bfa4-4e7f2ccd6737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to