cf0f2450bb3da89631e9a1080532c288d72a1146
[csit.git] / resources / tools / testbed-setup / ansible / roles / calibration / tasks / main.yaml
1 ---
2 # file: roles/calibration/tasks/main.yaml
3
4 - name: Calibration - Install Distribution - Release - Machine Prerequisites
5   package:
6     name: "{{ packages | flatten(levels=1) }}"
7     state: latest
8     update_cache: true
9   tags:
10     - install-dependencies
11
12 - name: Calibration - Get Spectre Meltdown Checker
13   get_url:
14     url: "https://meltdown.ovh"
15     dest: "/opt/spectre-meltdown-checker.sh"
16     mode: "744"
17   tags:
18     - check-spectre-meltdown
19
20 - name: Calibration - Run Spectre Meltdown Checker
21   shell: "/opt/spectre-meltdown-checker.sh --no-color || true"
22   async: 60
23   poll: 0
24   register: spectre_meltdown_async
25   tags:
26     - check-spectre-meltdown
27
28 - name: Calibration - {{ ansible_machine }} Specific
29   include_tasks: "{{ ansible_machine }}.yaml"
30   tags:
31     - check-machine-specific
32     - check-jitter-tool
33
34 - name: Check sync status
35   async_status:
36     jid: "{{ spectre_meltdown_async.ansible_job_id }}"
37   register: "spectre_meltdown_poll_results"
38   until: spectre_meltdown_poll_results.finished
39   retries: 30
40
41 - debug: var=spectre_meltdown_poll_results.stdout_lines
42   tags:
43     - check-spectre-meltdown