-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Check behaviour if ansible_remote_tmp is deleted mid-play
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# issue #1061: ensure remote temporary directory is recreated | ||
|
||
- 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: | ||
dest: canary | ||
mode: u=rw,go= | ||
content: | | ||
Created by integration/context_service/remote_tmp.yml | ||
- name: Delete ansible_remote_tmp | ||
raw: | | ||
rm -rf "{{ ansible_remote_tmp }}" | ||
- name: Do something else that requires ansible_remote_tmp | ||
file: | ||
path: canary | ||
state: absent | ||
tags: | ||
- issue_1061 | ||
- remote_tmp |