Hello guys,
As a part of my project, I've written a lookup module and put it into lookup_plugins directory in the root of it:
project/lookup_plugins/mylookup
i am calling this module as:
- name: test
debug:
msg: "the next soa serial for zone: {{ item }} is
{{ lookup ('mylookup' ,item) }}"
loop:
- test1
- test2
but ansible raises an error:
fatal: [localhost]: FAILED! => {"msg": "lookup plugin (mylookup) not found"}
citing the official documentation:
"You can activate a custom lookup by either dropping it into a lookup_plugins directory adjacent to your play".