diff --git a/test/integration/roles/test_copy/tasks/main.yml b/test/integration/roles/test_copy/tasks/main.yml index 8bb13b4502..d509093730 100644 --- a/test/integration/roles/test_copy/tasks/main.yml +++ b/test/integration/roles/test_copy/tasks/main.yml @@ -166,7 +166,7 @@ # register: failed_copy - name: copy already copied directory again - copy: src=subdir dest={{output_subdir | expanduser}} owner={{ansible_ssh_user}} + copy: src=subdir dest={{output_subdir | expanduser}} owner={{ansible_ssh_user|default(omit)}} register: copy_result5 - name: assert that the directory was not changed