I would like to embed some action plugins within a role, and then call those plugins from a top level playbook, after the role has been invoked/referenced.
AFAICT, I have followed these instructions http://docs.ansible.com/ansible/playbooks_roles.html#embedding-modules-and-plugins-in-roles , but when I attempt to call the action plugin from my playbook, it can’t find it, and gives:
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
If I set my ANSIBLE_LIBRARY and ANSIBLE_ACTION_PLUGINS varaibles to reach into the role, then it works.
I’m running Ansible 2.2.2.0 on macOS Sierra, installed via pip.
Any ideas how to get this working?