Ansible: More telemetry
[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   ignore_errors: yes
25   register: spectre_meltdown_async
26   tags:
27     - check-spectre-meltdown
28
29 - name: Calibration - {{ ansible_machine }} Specific
30   include_tasks: "{{ ansible_machine }}.yaml"
31   tags:
32     - check-machine-specific
33     - check-jitter-tool
34
35 - name: Calibration - Get BIOS info
36   shell: "dmidecode -t bios"
37   ignore_errors: yes
38   register: dmidecode_bios
39   tags:
40     - check-bios
41
42 - debug: var=dmidecode_bios.stdout_lines
43   tags:
44     - check-bios
45
46 - name: Check sync status
47   async_status:
48     jid: "{{ spectre_meltdown_async.ansible_job_id }}"
49   register: "spectre_meltdown_poll_results"
50   until: spectre_meltdown_poll_results.finished
51   retries: 30
52
53 - debug: var=spectre_meltdown_poll_results.stdout_lines
54   tags:
55     - check-spectre-meltdown