This is what host_vars are for. You can set them as part of your inventory file (or dynamic inventories can set them too) or you can have host_vars files which data for each (similar to group_vars).
See http://docs.ansible.com/playbooks_variables.html and http://docs.ansible.com/intro_inventory.html On Fri, Aug 22, 2014 at 9:56 AM, <[email protected]> wrote: > Hello Ansible people, > > How is it possible to set specific data while applying a role (or a > playbook) to a host? Or another way to say, may I apply a general role or > play on several hosts but with special data for each? > > Thanks in advance. > > -- > 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/1ae0e029-5abd-4c4b-bf9c-a6a2d1e88d67%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/CAJQqANd--B%2BeoJExFSVyuXAAahLArJX%3DfNy%3Dr0d_q2QS%3D4O9tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
