Inventory scripts are different from say, lookup plugins and action plugins.
Inventory plugins get executed outside of variable processing and cannot get these things, but can read environment variables and the like. On Mon, Oct 6, 2014 at 10:02 AM, Guy Matz <[email protected]> wrote: > Hi! Anyone know if it's possible to access extra_vars from a plugin? > > For example, let's say I wanted to write an ec2 inventory plugin that > could grab hosts for all regions, or as specified in an extra_vars variable > . . . > > Thanks a lot, > Guy > > -- > 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/CABnTgtW5NoifMbx9yzi%2B8Tx51%3Dv4a6Kv_G%2BAEcFaHy3Z52LhUQ%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CABnTgtW5NoifMbx9yzi%2B8Tx51%3Dv4a6Kv_G%2BAEcFaHy3Z52LhUQ%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%2BnsWgz0P6yDMp%2B19Y6xgmFfSO8UOzn70x1xYZBz-eBuB6hnqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
