Hello,
say I have two roles a and b:
roles/a/defaults/main.yml
---
p: default of role a
roles/a/tasks/main.yml
---
- debug:
msg: 'Role a {{p}}'
roles/b/meta/main.yml
---
dependencies:
- a
- role: a
p: "hello"
- role: a
p: "{{lookup('file', 'roles/b/files/world')}}"
roles/b/files/world
world from file
What is the stable way to reference the file 'roles/b/files/world'?
When role b is beneath playbook_dir the above works. However,
when role b is coming from the galaxy and installed to /etc/ansible/roles
how would I reference a file from b for lookup in role a?
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/
--
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/CAK8jvqx82s-0a%3DsL06u25-iVbYY7UTzmOc23%2BD%2BwV1pL6nqyxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.