diff options
author | 2021-06-09 13:03:00 +0000 | |
---|---|---|
committer | 2021-06-09 13:21:13 +0000 | |
commit | 4ad694bde4bad7962a736cd385e6e2b536636c93 (patch) | |
tree | 39bac8c83f5e56f963d8867f46a22a812efb7eaa | |
parent | ffd558c519fcf52de928f5d2818a7aeedd53e167 (diff) |
FIX: spectre-meltdown calibration
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ie162c2021d54129b48a6b3a48027b31db11d7ec6
(cherry picked from commit 924ab26cf80edfc9efb8116a2295478cd3f821ea)
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/main.yaml | 30 |
1 files changed, 15 insertions, 15 deletions
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 |