I assume you mean an action plugin? (as basic modules don't take files as inputs)
This is the path_dwim stuff that all the other modules do, you might want to look at something like "action_plugins/copy" for reference. On Thu, Mar 13, 2014 at 9:01 PM, Andrew Cholakian <[email protected]>wrote: > Hi, i'm currently writing a module that takes a directory of configuration > files as an argument. What would I need to do to have it take an argument > 'foo', and find it at either ansible_base_dir/foo and > ansible_base_dir/roles/rolename/foo > > -- > 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/198d90a6-345a-47ed-a293-5f6b6f304381%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/198d90a6-345a-47ed-a293-5f6b6f304381%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEVJ8QNJeGKh_zXMVfLK5HjDuQ5iWMn1HN04LNfU3W%2BTE6T9hw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
