|
|
|
@ -384,7 +384,7 @@
|
|
|
|
|
content: "foo.txt\n"
|
|
|
|
|
dest: '{{ local_temp_dir }}/foo.txt'
|
|
|
|
|
mode: 0547
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Copy with mode=preserve
|
|
|
|
|
copy:
|
|
|
|
@ -435,7 +435,7 @@
|
|
|
|
|
file:
|
|
|
|
|
path: '{{ role_path }}/files/subdir/subdira'
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Set the output subdirectory
|
|
|
|
|
set_fact:
|
|
|
|
@ -450,13 +450,13 @@
|
|
|
|
|
copy:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link
|
|
|
|
|
content: target
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Setup link target dir for absolute link
|
|
|
|
|
file:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link-dir
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Test recursive copy to directory no trailing slash, local_follow=False
|
|
|
|
|
copy:
|
|
|
|
@ -607,13 +607,13 @@
|
|
|
|
|
copy:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link
|
|
|
|
|
content: target
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Setup link target dir for absolute link
|
|
|
|
|
file:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link-dir
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Test recursive copy to directory trailing slash, local_follow=False
|
|
|
|
|
copy:
|
|
|
|
@ -762,13 +762,13 @@
|
|
|
|
|
copy:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link
|
|
|
|
|
content: target
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Setup link target dir for absolute link
|
|
|
|
|
file:
|
|
|
|
|
dest: /tmp/ansible-test-abs-link-dir
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Test recursive copy to directory no trailing slash, local_follow=True
|
|
|
|
|
copy:
|
|
|
|
@ -940,7 +940,7 @@
|
|
|
|
|
file:
|
|
|
|
|
path: '{{ local_temp_dir }}/dest1'
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Recursive copy the source
|
|
|
|
|
copy:
|
|
|
|
@ -1003,7 +1003,7 @@
|
|
|
|
|
file:
|
|
|
|
|
path: '{{ local_temp_dir }}/destination'
|
|
|
|
|
state: directory
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Copy the directory and files within (no trailing slash)
|
|
|
|
|
copy:
|
|
|
|
@ -1383,8 +1383,7 @@
|
|
|
|
|
path: '{{ local_temp_dir }}/top_dir/subdir/circle'
|
|
|
|
|
src: '{{ local_temp_dir }}/top_dir/'
|
|
|
|
|
state: link
|
|
|
|
|
|
|
|
|
|
connection: local
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
|
|
- name: Copy the directory's link
|
|
|
|
|
copy:
|
|
|
|
@ -2096,4 +2095,4 @@
|
|
|
|
|
- "stat_remote_dir_src_link_file12_before.stat.pw_name == stat_remote_dir_src_link_file12_after.stat.pw_name"
|
|
|
|
|
- "stat_remote_dir_src_link_file12_before.stat.gr_name == stat_remote_dir_src_link_file12_after.stat.gr_name"
|
|
|
|
|
- "stat_remote_dir_src_link_file12_before.stat.path == stat_remote_dir_src_link_file12_after.stat.path"
|
|
|
|
|
- "stat_remote_dir_src_link_file12_before.stat.mode == stat_remote_dir_src_link_file12_after.stat.mode"
|
|
|
|
|
- "stat_remote_dir_src_link_file12_before.stat.mode == stat_remote_dir_src_link_file12_after.stat.mode"
|
|
|
|
|