From 8cb54f29a244f8349b0774d60ea878a0defb3d3a Mon Sep 17 00:00:00 2001 From: pmikus Date: Thu, 18 Jul 2024 09:28:11 +0200 Subject: feat(ansible): Update calibration role Signed-off-by: Peter Mikus Change-Id: If09928efb26066137014d3784efc6e6910d01143 --- .../roles/calibration/tasks/main.yaml | 50 ++-------------------- 1 file changed, 3 insertions(+), 47 deletions(-) (limited to 'fdio.infra.ansible/roles/calibration/tasks/main.yaml') diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml index 5807d7e2a4..9db95a87a0 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml @@ -1,7 +1,7 @@ --- -# file: roles/calibration/tasks/main.yaml +# file: tasks/main.yaml -- name: Inst - Update Package Cache (APT) +- name: Update Package Cache (APT) ansible.builtin.apt: update_cache: true cache_valid_time: 3600 @@ -10,29 +10,13 @@ tags: - calibration-inst-prerequisites -- name: Inst - Prerequisites +- name: Prerequisites ansible.builtin.package: name: "{{ packages | flatten(levels=1) }}" state: latest tags: - calibration-inst-prerequisites -- name: Check CPU Power States - ansible.builtin.shell: "lscpu" - register: current_lscpu - changed_when: false - tags: - - check-cpu-frequency - -- name: Check CPU Power States - ansible.builtin.assert: - that: - - "'CPU min MHz' not in current_lscpu.stdout or 'Intel(R) Xeon(R)' not in ansible_processor" - fail_msg: "CPU configuration!" - success_msg: "CPU configuration match." - tags: - - check-cpu-frequency - - name: Check Kernel Parameters ansible.builtin.assert: that: @@ -54,34 +38,6 @@ tags: - check-kernel-version -- name: Spectre Meltdown Checker Status - ansible.builtin.stat: - path: "/opt/spectre-meltdown-checker.sh" - register: spectre_meltdown_status - tags: - - check-spectre-meltdown - -- name: Get Spectre Meltdown Checker - ansible.builtin.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 - ansible.builtin.shell: "/opt/spectre-meltdown-checker.sh --no-color --sysfs-only || true" - ignore_errors: true - register: spectre_meltdown_sync - tags: - - check-spectre-meltdown - -- debug: var=spectre_meltdown_sync.stdout_lines - tags: - - check-spectre-meltdown - - name: "{{ ansible_machine }} Specific" include_tasks: "{{ ansible_machine }}.yaml" tags: -- cgit 1.2.3-korg