copy tests: only create recursive symlink in tests (#35073)

(cherry picked from commit 9106284c1c)
This commit is contained in:
Jordan Borean 2018-01-19 11:42:20 +10:00 committed by Toshio Kuratomi
parent 02e5c0d0ca
commit 159b0f628d
2 changed files with 15 additions and 1 deletions

View file

@ -10,6 +10,15 @@
# output_dir is hardcoded in test/runner/lib/executor.py and created there
remote_dir: '{{ output_dir }}'
- file: path={{local_temp_dir}} state=directory
name: ensure temp dir exists
# file cannot do this properly, use command instead
- name: Create ciruclar symbolic link
command: ln -s ../ circles
args:
chdir: '{{role_path}}/files/subdir/subdir1'
- name: Create remote unprivileged remote user
user:
name: '{{ remote_unprivileged_user }}'
@ -46,6 +55,12 @@
state: absent
connection: local
- name: Remove circular symbolic link
file:
path: subdir/subdir1/circles
state: absent
connection: local
- name: Remote unprivileged remote user
user:
name: '{{ remote_unprivileged_user }}'