Hello,

I am developing custom ansible module to do something and i will implement 
this module as one of task in my new role.
The new custom module is written in python 2.7.

I know how to get variables passing to module in playbook, like:

- name: task 1
  custom_module_name: arg1='foo'

And in python code:   module.param.get()

And question is, how to get variables stored in vars/main.yml file or   
group_vars/all  file in this (python)  custom module?

Regards,
Gerhard

-- 
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/7b8f640c-e83e-4ad4-9374-9c662ab73b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to