in my case actions plugins are not picked up from action_plugins/ folder, but lookup one do from lookup_plugins/ folder. Perhaps I missing smth obvious.
i.e. I have set of lookup plugins: /deployment/boxes/lookup_plugins ➜ lookup_plugins git:(feature-standalone-gl-ee) ls *.py aws_ec2_allocation_id_from_eip.py aws_secgroup_ids_from_names.py aws_subnet_ids_from_names.py aws_vpc_id_from_name.py sa_hashi_vault.py and lookup plugins are picked just fine, I am able to use them in playbook But the action plugins from /deployment/boxes/action_plugins are not loaded or detected by ansible. On Thu, Jul 21, 2016 at 5:06 PM, Mike Biancaniello <[email protected]> wrote: > Vyacheslav, I'm not sure I understand your question? > > On Thursday, July 21, 2016 at 9:07:49 AM UTC-4, Vyacheslav wrote: >> >> Mike, >> >> I think, I have similar issue. >> >> Mine local lookup plugins from playbook_dir/lookup_plugins are loaded and >> executed fine, but the same manner implemented action plugins are not >> loaded from file like playbook_dir/action_plugins/action.py >> >> Is there additional magic linked to library too ? Is there way I can >> distribute local action plugin with playbook? >> >> On Friday, 15 April 2016 16:46:22 UTC+3, Mike Biancaniello wrote: >>> >>> Action plugins need to be in the action_plugins/ dir (can be either a >>> subdir of the playbook_dir or of a role that you include), however, ansible >>> won't recognize the plugin uless you also have a file of the same name in >>> the library/ dir. All you **need** to do is 'touch' the library file, >>> but you should at least use this to store the module documentation. >>> Remember, though, that action_plugins are executed on ***localhost***, >>> so action_plugin is often used for local preprocessing before calling the >>> module to do the remote work. >>> >>> All of that being said, why can't you just pass the module the args that >>> you need? >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/AIzW4z3dEL4/unsubscribe. > To unsubscribe from this group and all its topics, 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/5659a1f3-0c44-4a28-9bde-ab47d529881d%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/5659a1f3-0c44-4a28-9bde-ab47d529881d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Vyacheslav Voronenko -- 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/CAJMGCST1f2_ZuttPC0J0ex41dD4zQ%3DV%2B68Sr_eBoOd8WZC6Cyg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
