Re: [ansible-project] Re: Ansible Acton Plugins

2016-07-22 Thread Mike Biancaniello
try creating /deployment/boxes/library/
and placing your files there.

Usually, unless you change your ansible.cfg, the plugins, roles, libraries, 
etc are all subdirs of your playbook dir.

On Friday, July 22, 2016 at 11:14:08 AM UTC-4, Vyacheslav wrote:
>
> Where should the library/ be present?  Could it be also directory under 
> playbook?
>
> On Fri, Jul 22, 2016 at 6:02 PM, Mike Biancaniello  > wrote:
>
>> action_plugins/ will not be picked up by ansible unless there is a file 
>> in library/ with the same name. This file in library/ can be empty, but it 
>> must exist.
>>
>> -- 
>> 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 
>> ansible-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/e4ad06fc-7734-459f-bb14-20e8bed5b349%40googlegroups.com
>>  
>> 
>> .
>>
>> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4430cc7e-c598-4819-8d83-d0b6ed22097d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible Acton Plugins

2016-07-22 Thread Vyacheslav Voronenko
Where should the library/ be present?  Could it be also directory under
playbook?

On Fri, Jul 22, 2016 at 6:02 PM, Mike Biancaniello 
wrote:

> action_plugins/ will not be picked up by ansible unless there is a file in
> library/ with the same name. This file in library/ can be empty, but it
> must exist.
>
> --
> 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
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e4ad06fc-7734-459f-bb14-20e8bed5b349%40googlegroups.com
> 
> .
>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJMGCSQJfJ75bQqPtref5vO1STLveAS%2BRwSeQOiBPv_usMjQ%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible Acton Plugins

2016-07-22 Thread Mike Biancaniello
action_plugins/ will not be picked up by ansible unless there is a file in 
library/ with the same name. This file in library/ can be empty, but it 
must exist.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e4ad06fc-7734-459f-bb14-20e8bed5b349%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: Ansible Acton Plugins

2016-07-21 Thread Vyacheslav Voronenko
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 
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
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/5659a1f3-0c44-4a28-9bde-ab47d529881d%40googlegroups.com
> 
> .
>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.