Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Pause with wait_for insted of pause
Browse files Browse the repository at this point in the history
Pause the execution with wait_for
instead of pause since pause
can be skipped according to how
the role is triggered.
  • Loading branch information
tiraboschi committed Apr 10, 2019
1 parent 5f0ab6b commit 2956a91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/fetch_engine_logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2956a91

Please sign in to comment.