Skip to content

Commit 61113cb

Browse files
committed
tests: Check behaviour if ansible_remote_tmp is deleted mid-play
1 parent 23d9d0b commit 61113cb

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tests/ansible/integration/context_service/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
- import_playbook: lru_one_target.yml
33
- import_playbook: reconnection.yml
44
- import_playbook: remote_name.yml
5+
- import_playbook: remote_tmp.yml
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# issue #1061: ensure remote temporary directory is recreated
2+
3+
- name: integration/context_service/remote_tmp.yml
4+
hosts: test-targets
5+
gather_facts: false
6+
vars:
7+
ansible_remote_tmp: ~/.ansible/remote_tmp_test
8+
tasks:
9+
- name: Exercise ansible_remote_tmp
10+
copy:
11+
dest: canary
12+
mode: u=rw,go=
13+
content: |
14+
Created by integration/context_service/remote_tmp.yml
15+
16+
- name: Delete ansible_remote_tmp
17+
raw: |
18+
rm -rf "{{ ansible_remote_tmp }}"
19+
20+
- name: Do something else that requires ansible_remote_tmp
21+
file:
22+
path: canary
23+
state: absent
24+
tags:
25+
- issue_1061
26+
- remote_tmp

0 commit comments

Comments
 (0)