What about: Extending a list? In Python-Syntax group_vars/all.yml: packages = ["a", "b"] host_vars/host1.yml: packages.extend(["c", "d"])
Endresult for packages for host1: ["a", ""b", "c", "d"] Is this possible in yaml? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Wed, Dec 10, 2014 at 4:46 PM, Toshio Kuratomi <[email protected]> wrote: > Could you give an example of what you want to achieve?I think that would > make your question clearer. > > Thanks, > Toshio > > On Dec 9, 2014 5:20 AM, "Micael Malta" <[email protected]> wrote: >> >> I have a question: How to extends variables: >> >> In group_vars/all, i have a variable config and i want in >> host_vars/my_server to extend it >> >> How to do that? >> >> -- >> 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/53f7058b-ce6a-49f9-83b6-d1ff1f83791d%40googlegroups.com. >> 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/CAG9juEqz9-o0T%2BL%2BctaqPxf7%3DA29%3DCC5N6q8dran5K51z3ffxg%40mail.gmail.com. > > 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/CAK8jvqwE%2BXwb1aijRyB2ncYUwArOg0Hyg3CKtCY1DV88138phQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
