aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/calibration/tasks/main.yaml
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-06-09 13:03:00 +0000
committerpmikus <pmikus@cisco.com>2021-06-09 13:03:00 +0000
commit924ab26cf80edfc9efb8116a2295478cd3f821ea (patch)
treeeadb6945226162414ebd17eaf98c5e2eed5104a6 /fdio.infra.ansible/roles/calibration/tasks/main.yaml
parentd0e972a07ae624ef74db96acf21d1adcc4970d3c (diff)
FIX: spectre-meltdown calibration
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: Ie162c2021d54129b48a6b3a48027b31db11d7ec6
Diffstat (limited to 'fdio.infra.ansible/roles/calibration/tasks/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/calibration/tasks/main.yaml30
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