From 42f5d30ab01f3693789888c0d47eefe28430d7a4 Mon Sep 17 00:00:00 2001 From: Hideki Saito Date: Sat, 12 Mar 2022 21:24:43 +0900 Subject: [PATCH] Add delegate_to to each task Signed-off-by: Hideki Saito --- tests/integration/targets/synchronize/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/targets/synchronize/tasks/main.yml b/tests/integration/targets/synchronize/tasks/main.yml index 50cf330..e61638c 100644 --- a/tests/integration/targets/synchronize/tasks/main.yml +++ b/tests/integration/targets/synchronize/tasks/main.yml @@ -6,10 +6,12 @@ file: path: '{{ output_dir }}' state: absent + delegate_to: '{{ inventory_hostname }}' - name: Create the working directory file: path: '{{ output_dir }}' state: directory + delegate_to: '{{ inventory_hostname }}' - name: create test new files copy: dest: '{{output_dir}}/{{item}}' @@ -18,6 +20,7 @@ with_items: - foo.txt - bar.txt + delegate_to: '{{ inventory_hostname }}' - name: Check OS distribution debug: