diff --git a/tests/integration/targets/synchronize/tasks/main.yml b/tests/integration/targets/synchronize/tasks/main.yml index 4df067b..8251868 100644 --- a/tests/integration/targets/synchronize/tasks/main.yml +++ b/tests/integration/targets/synchronize/tasks/main.yml @@ -42,7 +42,16 @@ copy: src: "{{ output_dir }}/foo.txt" dest: "{{ output_dir }}/foo.result" + when: + - ansible_facts.virtualization_type != 'docker' +- name: copy file to new filename + copy: + src: "{{ output_dir }}/foo.txt" + dest: "{{ output_dir }}/foo.result" + delegate_to: "{{ inventory_hostname }}" + when: + - ansible_facts.virtualization_type == 'docker' #- name: synchronize file to new filename # synchronize: