From 2956a9158b633cca2b967e23234fd2ed28b54882 Mon Sep 17 00:00:00 2001 From: Simone Tiraboschi Date: Fri, 5 Apr 2019 14:20:22 +0200 Subject: [PATCH] Pause with wait_for insted of pause Pause the execution with wait_for instead of pause since pause can be skipped according to how the role is triggered. --- tasks/fetch_engine_logs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/fetch_engine_logs.yml b/tasks/fetch_engine_logs.yml index 96bd272..d213e57 100644 --- a/tasks/fetch_engine_logs.yml +++ b/tasks/fetch_engine_logs.yml @@ -11,8 +11,10 @@ mode: 0700 - include_tasks: get_local_vm_disk_path.yml - name: Give the vm time to flush dirty buffers - pause: - seconds: 10 + wait_for: + timeout: 10 + delegate_to: localhost + become: false - name: Copy engine logs command: virt-copy-out -a {{ local_vm_disk_path }} {{ item }} {{ destdir }} environment: