diff --git a/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml b/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml index b811367..683e1cd 100644 --- a/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml +++ b/tasks/bootstrap_local_vm/03_engine_initial_tasks.yml @@ -50,6 +50,9 @@ - include_tasks: restore_backup.yml when: he_restore_from_file is defined and he_restore_from_file rescue: + - name: Sync on engine machine + command: sync + changed_when: true - name: Fetch logs from the engine VM import_tasks: fetch_engine_logs.yml ignore_errors: true diff --git a/tasks/bootstrap_local_vm/04_engine_final_tasks.yml b/tasks/bootstrap_local_vm/04_engine_final_tasks.yml index cd3ea62..4e6b475 100644 --- a/tasks/bootstrap_local_vm/04_engine_final_tasks.yml +++ b/tasks/bootstrap_local_vm/04_engine_final_tasks.yml @@ -52,6 +52,9 @@ - cloud-init-local - cloud-init rescue: + - name: Sync on engine machine + command: sync + changed_when: true - name: Fetch logs from the engine VM import_tasks: fetch_engine_logs.yml ignore_errors: true diff --git a/tasks/bootstrap_local_vm/05_add_host.yml b/tasks/bootstrap_local_vm/05_add_host.yml index 09a3246..6d3c53a 100644 --- a/tasks/bootstrap_local_vm/05_add_host.yml +++ b/tasks/bootstrap_local_vm/05_add_host.yml @@ -188,6 +188,9 @@ host_result_up_check.ovirt_hosts|length >= 1 and host_result_up_check.ovirt_hosts[0].status == 'non_operational' rescue: + - name: Sync on engine machine + command: sync + changed_when: true - name: Fetch logs from the engine VM include_tasks: fetch_engine_logs.yml ignore_errors: true diff --git a/tasks/full_execution.yml b/tasks/full_execution.yml index bfa6e8a..3616193 100644 --- a/tasks/full_execution.yml +++ b/tasks/full_execution.yml @@ -65,5 +65,9 @@ block: - name: Hosted engine final tasks import_tasks: create_target_vm/03_hosted_engine_final_tasks.yml + - name: Sync on engine machine + command: sync + changed_when: true + delegate_to: "{{ groups.engine[0] }}" - name: Final clean import_tasks: final_clean.yml