Role variables are definitely a thing.

Where you can move top level playbook things to vars/ or defaults/ in a
role it can be a good idea.

Simple playbooks like "fix shellshock" could use vars or vars_files fine,
or even if you find other uses, that's fine too.

We're not particularly dogmatic about it.


On Wed, Dec 3, 2014 at 6:08 PM, Josh Smift <[email protected]> wrote:

> MH> I’m not sure why I’d ever want to use vars/ then. Sure I could be
> MH> convinced of a use-case
>
> A use case I've seen, which doesn't seem all that uncommon, is when you
> want to use a given role with multiple inventories, each of which has its
> own inventory/group/host vars structure. Putting the default in the role
> lets you have it in one place, and be confident that it's consistent
> across your various inventories unless you explicitly override it.
>
>                                       -Josh ([email protected])
>
>
>
> This email is intended for the person(s) to whom it is addressed and may
> contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized
> use, distribution, copying, or disclosure by any person other than the
> addressee(s) is strictly prohibited. If you have received this email in
> error, please notify the sender immediately by return email and delete the
> message and any attachments from your system.
>
> --
> 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/21631.38923.225316.18272%40gargle.gargle.HOWL
> .
> 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%2BnsWgz1b7H7zE%2Byo7OcaS95Q2JtXnS1xYOjLimgN-fA99yTXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to