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.
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.
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