summaryrefslogtreecommitdiff
path: root/test/integration/targets/setup_remote_constraints
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-01-24 19:25:06 -0800
committerMatt Clay <matt@mystile.com>2019-01-24 19:57:04 -0800
commitd2a7cc0b9f835d972941168d5c49e398c65d88a9 (patch)
tree4f92f74e1072b6d7f9abd931699b620eeff35944 /test/integration/targets/setup_remote_constraints
parent92b475f7212f098b7ea3e4ef46f1f817b25ca27c (diff)
downloadansible-d2a7cc0b9f835d972941168d5c49e398c65d88a9.tar.gz
Fix integration tests to support remote hosts.
Diffstat (limited to 'test/integration/targets/setup_remote_constraints')
-rw-r--r--test/integration/targets/setup_remote_constraints/aliases1
-rw-r--r--test/integration/targets/setup_remote_constraints/meta/main.yml2
-rw-r--r--test/integration/targets/setup_remote_constraints/tasks/main.yml8
3 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/setup_remote_constraints/aliases b/test/integration/targets/setup_remote_constraints/aliases
new file mode 100644
index 0000000000..f50acb2d6a
--- /dev/null
+++ b/test/integration/targets/setup_remote_constraints/aliases
@@ -0,0 +1 @@
+needs/file/test/runner/requirements/constraints.txt
diff --git a/test/integration/targets/setup_remote_constraints/meta/main.yml b/test/integration/targets/setup_remote_constraints/meta/main.yml
new file mode 100644
index 0000000000..1810d4bec9
--- /dev/null
+++ b/test/integration/targets/setup_remote_constraints/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+ - setup_remote_tmp_dir
diff --git a/test/integration/targets/setup_remote_constraints/tasks/main.yml b/test/integration/targets/setup_remote_constraints/tasks/main.yml
new file mode 100644
index 0000000000..9827267dfc
--- /dev/null
+++ b/test/integration/targets/setup_remote_constraints/tasks/main.yml
@@ -0,0 +1,8 @@
+- name: record constraints.txt path on remote host
+ set_fact:
+ remote_constraints: "{{ remote_tmp_dir }}/constraints.txt"
+
+- name: copy constraints.txt to remote host
+ copy:
+ src: "{{ role_path }}/../../../runner/requirements/constraints.txt"
+ dest: "{{ remote_constraints }}"