Skip to content

Commit 0936ef7

Browse files
committed
WIP
1 parent 61113cb commit 0936ef7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

tests/ansible/integration/context_service/remote_tmp.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
- name: integration/context_service/remote_tmp.yml
44
hosts: test-targets
55
gather_facts: false
6-
vars:
7-
ansible_remote_tmp: ~/.ansible/remote_tmp_test
86
tasks:
97
- name: Exercise ansible_remote_tmp
108
copy:
@@ -13,9 +11,20 @@
1311
content: |
1412
Created by integration/context_service/remote_tmp.yml
1513
14+
- debug:
15+
msg: ANSIBLE_REMOTE_TMP={{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}
16+
17+
- command:
18+
ls -l "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
19+
changed_when: false
20+
register: out
21+
22+
- debug:
23+
var: out
24+
1625
- name: Delete ansible_remote_tmp
1726
raw: |
18-
rm -rf "{{ ansible_remote_tmp }}"
27+
rm -rf "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
1928
2029
- name: Do something else that requires ansible_remote_tmp
2130
file:

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ passenv =
105105
AWS_SECRET_ACCESS_KEY
106106
HOME
107107
setenv =
108+
ANSIBLE_REMOTE_TMP = ~/.local/remote_tmp_test
108109
# See also azure-pipelines.yml
109110
ANSIBLE_STRATEGY = mitogen_linear
110111
NOCOVERAGE_ERASE = 1

0 commit comments

Comments
 (0)