From d17fe3e6d2d937ebac57b33b8dda4df5dae3bd52 Mon Sep 17 00:00:00 2001 From: cloudguruab Date: Tue, 24 Oct 2023 00:16:29 +0200 Subject: [PATCH] dev: tail instead of cat --- os_migrate/roles/import_workloads/tasks/workload.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_migrate/roles/import_workloads/tasks/workload.yml b/os_migrate/roles/import_workloads/tasks/workload.yml index 92f62ec1..f9a59150 100644 --- a/os_migrate/roles/import_workloads/tasks/workload.yml +++ b/os_migrate/roles/import_workloads/tasks/workload.yml @@ -93,7 +93,7 @@ - item["_migration_params"]["data_copy"]|default(true) - name: print file contents - ansible.builtin.command: 'cat {{ os_migrate_data_dir }}/workload_logs/osm_server.log' + ansible.builtin.command: 'tail -n 300 {{ os_migrate_data_dir }}/workload_logs/osm_server.log' - name: transfer volumes to destination os_migrate.os_migrate.import_workload_transfer_volumes: