diff options
author | pmikus <peter.mikus@protonmail.ch> | 2024-07-18 09:28:11 +0200 |
---|---|---|
committer | pmikus <peter.mikus@protonmail.ch> | 2024-07-18 09:28:11 +0200 |
commit | 8cb54f29a244f8349b0774d60ea878a0defb3d3a (patch) | |
tree | 8cdb79ea25c83fa91787fbba2964ab6758d3413d /fdio.infra.ansible/roles/calibration/tasks/main.yaml | |
parent | 53b7082b70f15582c223ebe0bddce5feafaed5ba (diff) |
feat(ansible): Update calibration role
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: If09928efb26066137014d3784efc6e6910d01143
Diffstat (limited to 'fdio.infra.ansible/roles/calibration/tasks/main.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/main.yaml | 50 |
1 files changed, 3 insertions, 47 deletions
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: |