Thanks Johannes. What I really wanted to understand it is just the* generic method or methods of defining and passing variables to a module in a playbook.* I am at the beginning of learning ansible and that is one of the questions I would like to have clarified.
Zava On Sunday, May 29, 2016 at 3:33:02 PM UTC-4, Johannes Kastl wrote: > > On 29.05.16 03:19 ZaVaZaVa wrote: > > > Question: How do I pass parameters to a YML file or, assuming it is the > > same, how do I pass variables into modules defined within Playbook. > > I fear your question is too wide to get really good answers. Why don't > you give an example of what you are trying to achieve? Or which code > works/does not work for you? > > Generally, variables set in host_vars, group_vars, vars-sections of > plays and similar are set and can be used within a play or role or task. > > https://docs.ansible.com/ansible/playbooks_variables.html > > Johannes > > > -- 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/2deb3bf3-d051-48a3-b60d-2ab94b7418de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
