From 924ab26cf80edfc9efb8116a2295478cd3f821ea Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 9 Jun 2021 13:03:00 +0000 Subject: FIX: spectre-meltdown calibration Signed-off-by: pmikus Change-Id: Ie162c2021d54129b48a6b3a48027b31db11d7ec6 --- .../roles/calibration/tasks/main.yaml | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'fdio.infra.ansible/roles/calibration') diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml index 696f1c9265..5f4470adfc 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml @@ -54,20 +54,31 @@ tags: - check-kernel-version +- name: Spectre Meltdown Checker Status + stat: + path: "/opt/spectre-meltdown-checker.sh" + register: spectre_meltdown_status + tags: + - check-spectre-meltdown + - name: Get Spectre Meltdown Checker get_url: url: "https://meltdown.ovh" dest: "/opt/spectre-meltdown-checker.sh" mode: "744" + when: + - not spectre_meltdown_status.stat.exists tags: - check-spectre-meltdown - name: Run Spectre Meltdown Checker - shell: "/opt/spectre-meltdown-checker.sh --no-color || true" - async: 60 - poll: 0 + shell: "/opt/spectre-meltdown-checker.sh --no-color --sysfs-only || true" ignore_errors: true - register: spectre_meltdown_async + register: spectre_meltdown_sync + tags: + - check-spectre-meltdown + +- debug: var=spectre_meltdown_sync.stdout_lines tags: - check-spectre-meltdown @@ -76,14 +87,3 @@ tags: - check-machine-specific - check-jitter-tool - -- name: Check Sync Status - async_status: - jid: "{{ spectre_meltdown_async.ansible_job_id }}" - register: "spectre_meltdown_poll_results" - until: spectre_meltdown_poll_results.finished - retries: 30 - -- debug: var=spectre_meltdown_poll_results.stdout_lines - tags: - - check-spectre-meltdown -- cgit 1.2.3-korg