summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/want_json_modules_posix
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-01-26 04:37:56 +0100
committerMatt Clay <matt@mystile.com>2019-01-26 05:46:53 +0100
commita8116497ba302de524489ffd47444517b520e9a7 (patch)
tree3c4d07baddd98426280787f82c1231fefbd8cead /test/integration/targets/want_json_modules_posix
parentMSO: Refactor modules to common structure (#51354) (diff)
downloadansible-a8116497ba302de524489ffd47444517b520e9a7.tar.xz
ansible-a8116497ba302de524489ffd47444517b520e9a7.zip
More test fixes for split controller/remote tests.
Diffstat (limited to 'test/integration/targets/want_json_modules_posix')
-rw-r--r--test/integration/targets/want_json_modules_posix/meta/main.yml2
-rw-r--r--test/integration/targets/want_json_modules_posix/tasks/main.yml7
2 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/targets/want_json_modules_posix/meta/main.yml b/test/integration/targets/want_json_modules_posix/meta/main.yml
new file mode 100644
index 0000000000..1810d4bec9
--- /dev/null
+++ b/test/integration/targets/want_json_modules_posix/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_remote_tmp_dir
diff --git a/test/integration/targets/want_json_modules_posix/tasks/main.yml b/test/integration/targets/want_json_modules_posix/tasks/main.yml
index 59ad0b7ca1..27e9f781b6 100644
--- a/test/integration/targets/want_json_modules_posix/tasks/main.yml
+++ b/test/integration/targets/want_json_modules_posix/tasks/main.yml
@@ -27,8 +27,13 @@
that:
- 'goodbye_ansible.msg == "Goodbye, Ansible!"'
+- name: Copy module to remote
+ copy:
+ src: "{{ role_path }}/library/helloworld.py"
+ dest: "{{ remote_tmp_dir }}/helloworld.py"
+
- name: Execute module directly
- command: '{{ ansible_python_interpreter|default(ansible_playbook_python) }} {{ role_path }}/library/helloworld.py'
+ command: '{{ ansible_python_interpreter|default(ansible_playbook_python) }} {{ remote_tmp_dir }}/helloworld.py'
register: direct
ignore_errors: true