I suspect include_vars is an action plugin, as it is the sort of thing that 
only runs on the controller, so isn't a module (which is typically 
delivered to the machines you are managing and run remotely).

However, I'm wondering if the simplest thing to do is just to wrap 
ansible-playbook in your own script that just adds the vars from a file to 
the ansible playbook as a -e @/path/to/some/yaml/or/json/file

I guess you might need to load different vars files for different playbooks 
or something, but just wondering if doing the simples thing might be enough.

What is your goal?  What problem are you trying to solve.  There might be a 
way to solve it without resorting to adding your own custom code on top of 
ansible?

Jon

On Friday, April 7, 2017 at 2:22:18 PM UTC+1, Matt Graham wrote:
>
> Hi All
>
> Im probably doing this wrong. I'm working on a version of include_vars 
> module where by my variables (based off a text file) get added to the 
> global vars like include_vars
>
> Im trying to figure out how I add it. I can see when I use include_vars, 
> that gets added to the global vars
>
> I checked that by doing
>
> - debug:
>       var: vars
>
> and it showed all the run time vars.
>
> Hell, I can't seem to find the include_var module to see how its done. Ive 
> tried this variable manager class but I must be doing it all wrong
>
> Thanks for any help
>
> Regards
>
>

-- 
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/68568a40-3988-4646-84ad-60a3d8c03866%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to