Hi all,
We have a multi-play playbook like this:
---
- name: Play One
hosts: all
roles:
- role.one
tags: [tagone]
- name: Play Two
hosts: group1
roles:
- role.two
- role.three
tags: [tagtwo]
- name: Play Three
hosts: group2
roles:
- role.four
- role.five
tags: [tagthree]
The behavior that puzzles us is: *role.five* has a custom module stored in
a *./library/* folder within the role itself (as the module is specific to
that role and used only by it). When the playbook contains several plays,
the custom module is NOT found, which we find unexpected.
If the playbook contains only the last play, like:
---
- name: Play Three
hosts: group2
roles:
- role.four
- role.five
then everything works as expected, the custom module is found and working.
We are further puzzled by the result of another try: if we move the
*./library/* folder with the custom module into *role.four*, then the full
play works fine (that is, while executing *role.five*, *ansible* finds the
module).
Is this intended behavior?
We would appreciate any comments,
Thanks!
-YD
--
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/b9c1f086-0b2b-4a23-9555-fc07aa1d00f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.