diff options
Diffstat (limited to '')
-rw-r--r-- | test/integration/targets/egg-info/aliases | 2 | ||||
-rw-r--r-- | test/integration/targets/egg-info/lookup_plugins/import_pkg_resources.py | 11 | ||||
-rw-r--r-- | test/integration/targets/egg-info/tasks/main.yml | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/targets/egg-info/aliases b/test/integration/targets/egg-info/aliases new file mode 100644 index 0000000..8278ec8 --- /dev/null +++ b/test/integration/targets/egg-info/aliases @@ -0,0 +1,2 @@ +shippable/posix/group3 +context/controller diff --git a/test/integration/targets/egg-info/lookup_plugins/import_pkg_resources.py b/test/integration/targets/egg-info/lookup_plugins/import_pkg_resources.py new file mode 100644 index 0000000..c0c5ccd --- /dev/null +++ b/test/integration/targets/egg-info/lookup_plugins/import_pkg_resources.py @@ -0,0 +1,11 @@ +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + +import pkg_resources + +from ansible.plugins.lookup import LookupBase + + +class LookupModule(LookupBase): + def run(self, terms, variables, **kwargs): + return ['ok'] diff --git a/test/integration/targets/egg-info/tasks/main.yml b/test/integration/targets/egg-info/tasks/main.yml new file mode 100644 index 0000000..d7b886c --- /dev/null +++ b/test/integration/targets/egg-info/tasks/main.yml @@ -0,0 +1,3 @@ +- name: Make sure pkg_resources can be imported by plugins + debug: + msg: "{{ lookup('import_pkg_resources') }}" |