moved apt update order to assist with audit

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-01-21 08:07:27 +00:00
parent 1b98e1ed7b
commit bba53315f2
No known key found for this signature in database
GPG Key ID: 997FF7FE93AEB5B9
1 changed files with 5 additions and 8 deletions

View File

@ -51,6 +51,11 @@
ansible.builtin.debug:
msg: "{{ prelim_mount_point_fs_and_options }}"
- name: "PRELIM | PATCH | Run apt update"
tags: always
ansible.builtin.package:
update_cache: true
- name: Include audit specific variables
when:
- run_audit or audit_only
@ -70,14 +75,6 @@
ansible.builtin.import_tasks:
file: pre_remediation_audit.yml
- name: "PRELIM | PATCH | Run apt update"
when:
- ubtu24cis_rule_1_2_1_1 or
ubtu24cis_rule_1_2_2_1
tags: always
ansible.builtin.package:
update_cache: true
- name: "PRELIM | AUDIT | Wireless adapter pre-requisites"
when:
- ubtu24cis_rule_3_1_2