Ansible organization

35 views
Skip to first unread message

zorg...@gmail.com

unread,
Aug 22, 2014, 9:56:24 AM8/22/14
to ansible...@googlegroups.com
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.

Michael Peters

unread,
Aug 22, 2014, 12:56:40 PM8/22/14
to ansible...@googlegroups.com
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
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> 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.
Reply all
Reply to author
Forward
0 new messages