Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed May 22, 2024
1 parent 61113cb commit 0936ef7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/ansible/integration/context_service/remote_tmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- name: integration/context_service/remote_tmp.yml
hosts: test-targets
gather_facts: false
vars:
ansible_remote_tmp: ~/.ansible/remote_tmp_test
tasks:
- name: Exercise ansible_remote_tmp
copy:
Expand All @@ -13,9 +11,20 @@
content: |
Created by integration/context_service/remote_tmp.yml
- debug:
msg: ANSIBLE_REMOTE_TMP={{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}

- command:
ls -l "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
changed_when: false
register: out

- debug:
var: out

- name: Delete ansible_remote_tmp
raw: |
rm -rf "{{ ansible_remote_tmp }}"
rm -rf "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
- name: Do something else that requires ansible_remote_tmp
file:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ passenv =
AWS_SECRET_ACCESS_KEY
HOME
setenv =
ANSIBLE_REMOTE_TMP = ~/.local/remote_tmp_test
# See also azure-pipelines.yml
ANSIBLE_STRATEGY = mitogen_linear
NOCOVERAGE_ERASE = 1
Expand Down

0 comments on commit 0936ef7

Please sign in to comment.