Are extra_vars accessible in plugins?

18 views
Skip to first unread message

Guy Matz

unread,
Oct 6, 2014, 10:02:19 AM10/6/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
Oct 6, 2014, 10:20:08 AM10/6/14
to ansible...@googlegroups.com
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.



--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABnTgtW5NoifMbx9yzi%2B8Tx51%3Dv4a6Kv_G%2BAEcFaHy3Z52LhUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages