See http://docs.ansible.com/playbooks_roles.html#roles and the following
example of passing values to parameterized roles:
---
- hosts: webservers
roles:
- common
- { role: foo_app_instance, dir: '/opt/a', port: 5000 }
- { role: foo_app_instance, dir: '/opt/b', port: 5001 }
On Tue, May 6, 2014 at 8:42 AM, Brian Coca <[email protected]> wrote:
> I use role's default/main.yml to set a version: variable, which can be
> overriden when calling the role.
>
> --
> 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/CADn%2BHszJWd3xYYA8ei%3D3qQRAN7PNodcEKB%3DSbB%2BXHPdr3v6PUw%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CADn%2BHszJWd3xYYA8ei%3D3qQRAN7PNodcEKB%3DSbB%2BXHPdr3v6PUw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CA%2BnsWgwLQB57VxuoB%3Dsj9%3DqqieOw%2B_O7BS%3DY-o3sVhBafVCZRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.