On 2013-12-06 17:32, Matt Cordial wrote:
Say I want to put basic config variables in roles/*/vars/main.yml for use when
the role's tasks run, but also want to access them in a play that doesn't
include that role. A specific example of what I am talking about would be
where I need to build a configuration file for an application that is
configured in a subsequent play.

Another way of doing this is to use the dictionary ability of yaml, instead of adding them in the role, add them to group_vars/all.yaml in a dictornary:

    mysoftware:
      license_key: 12345
      version: 2.0
--
Yves.

--
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to