File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
tests/ansible/integration/context_service Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 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 :
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 :
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ passenv =
105105 AWS_SECRET_ACCESS_KEY
106106 HOME
107107setenv =
108+ ANSIBLE_REMOTE_TMP = ~/.local/remote_tmp_test
108109 # See also azure-pipelines.yml
109110 ANSIBLE_STRATEGY = mitogen_linear
110111 NOCOVERAGE_ERASE = 1
You can’t perform that action at this time.
0 commit comments