Merge pull request #6 from ansible-lockdown/apt_update

moved apt update order to assist with audit
This commit is contained in:
uk-bolly 2025-01-21 16:22:21 +00:00 committed by GitHub
commit 30719a77b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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