Issue #1, Issue #2: Move more content into collection, fix tests.

This commit is contained in:
Jeff Geerling
2020-01-30 13:51:43 -06:00
parent 2e807f946a
commit d94dd72ae6
53 changed files with 15728 additions and 12 deletions

View File

@@ -1,2 +0,0 @@
dependencies:
- setup_remote_tmp_dir

View File

@@ -11,13 +11,9 @@ If kubectl is already using the right config file and context, you can
just do
```
cd test/integration/targets/k8s
cd tests/integration/targets/k8s
./runme.sh -vv
```
otherwise set one or both of `K8S_AUTH_KUBECONFIG` and `K8S_AUTH_CONTEXT`
and use the same command

View File

@@ -0,0 +1,5 @@
- name: delete temporary directory
file:
path: "{{ remote_tmp_dir }}"
state: absent
no_log: yes

View File

@@ -0,0 +1 @@
dependencies: []

View File

@@ -1,3 +1,5 @@
- include_tasks: setup_remote_tmp_dir.yml
- set_fact:
virtualenv: "{{ remote_tmp_dir }}/virtualenv"
virtualenv_command: "{{ ansible_python_interpreter }} -m virtualenv"

View File

@@ -0,0 +1,11 @@
- name: create temporary directory
tempfile:
state: directory
suffix: .test
register: remote_tmp_dir
notify:
- delete temporary directory
- name: record temporary directory
set_fact:
remote_tmp_dir: "{{ remote_tmp_dir.path }}"