mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Make lookup API extensible and allow basedir to be passed
This allows using with_fileglob in play context, e.g. - include: $item with_fileglob: tasks/*.yml as well as prepares for other data to be passed.
This commit is contained in:
parent
2c77cf1a49
commit
37d9acc097
4 changed files with 10 additions and 12 deletions
|
@ -15,14 +15,12 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
|
||||
class LookupModule(object):
|
||||
|
||||
def __init__(self, runner):
|
||||
self.runner = runner
|
||||
def __init__(self, **kwargs):
|
||||
pass
|
||||
|
||||
def run(self, terms):
|
||||
def run(self, terms, **kwargs):
|
||||
return terms
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue