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