Hi, it might be easier to use lookup plugins to pass the data to the
module, I really would need to know what the modules does and how it works
before I can tell you the best approach.

On Thursday, June 4, 2015, <[email protected]> wrote:

> Hi Brian,
>
> I've written a Python module in a role using data that I'm going to change
> from time to time. That's why I wanted to separate the Python code from its
> data, I manually wrote it in a YAML file. I naively thought the "files"
> directory of the role would be the best place to keep it, but don't know
> how to access it from the running Python module.
>
> If it's not obvious, maybe I should keep data into the Python code of the
> module even if I don't feel it very clean (list of 80+ dictionaries)...
>
>
>

-- 
Brian Coca

-- 
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/CAJ5XC8mmCeY1x4CXYDjUh_phDxX_e6vQZGZHE7dHAj%2BL%2B-SjGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to