Greetings all.
Is it possible to import a shared module in to a role module?
Something like:
roles/
myRole1/
library/
myFunc1.py <-- import myCommon
myRole2/
library/
myFunc2.py <-- import myCommon
some_dir/
myCommon.py
Where myCommon.py contain functions that can be used for all roles. E.g.
update_something_common().
Thanks.
/Anders
--
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/3ce63ce5-99fd-4b5d-81e1-375a297cce1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.