Skip to content

Commit bba5331

Browse files
committed
moved apt update order to assist with audit
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
1 parent 1b98e1e commit bba5331

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tasks/prelim.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
ansible.builtin.debug:
5252
msg: "{{ prelim_mount_point_fs_and_options }}"
5353

54+
- name: "PRELIM | PATCH | Run apt update"
55+
tags: always
56+
ansible.builtin.package:
57+
update_cache: true
58+
5459
- name: Include audit specific variables
5560
when:
5661
- run_audit or audit_only
@@ -70,14 +75,6 @@
7075
ansible.builtin.import_tasks:
7176
file: pre_remediation_audit.yml
7277

73-
- name: "PRELIM | PATCH | Run apt update"
74-
when:
75-
- ubtu24cis_rule_1_2_1_1 or
76-
ubtu24cis_rule_1_2_2_1
77-
tags: always
78-
ansible.builtin.package:
79-
update_cache: true
80-
8178
- name: "PRELIM | AUDIT | Wireless adapter pre-requisites"
8279
when:
8380
- ubtu24cis_rule_3_1_2

0 commit comments

Comments
 (0)