From 4ed7a677ce318783850049b0e4ac4a9de9a7229d Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Sun, 13 Mar 2022 01:25:34 +0900 Subject: [PATCH] TEST --- .../targets/synchronize/tasks/main.yml | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/tests/integration/targets/synchronize/tasks/main.yml b/tests/integration/targets/synchronize/tasks/main.yml index 8251868..beaa9d3 100644 --- a/tests/integration/targets/synchronize/tasks/main.yml +++ b/tests/integration/targets/synchronize/tasks/main.yml @@ -31,25 +31,33 @@ debug: msg: "{{ output_dir }}" -- name: test that the file was really copied over - stat: - path: "{{ output_dir }}/{{item}}" - with_items: - - foo.txt - - bar.txt - -- name: copy file to new filename - copy: - src: "{{ output_dir }}/foo.txt" - dest: "{{ output_dir }}/foo.result" +- block: + - name: test that the file was really copied over + stat: + path: "{{ output_dir }}/{{item}}" + with_items: + - foo.txt + - bar.txt + - name: copy file to new filename + 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 }}" +- block: + - name: test that the file was really copied over + stat: + path: "{{ output_dir }}/{{item}}" + with_items: + - foo.txt + - bar.txt + delegate_to: "{{ inventory_hostname }}" + - 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'