Add ignore_apt_update_changed_when default variable to allow users to specify changed_when behavior of apt update task; allows for idempotency checks (like Molecule)
Signed-off-by: Shawn Hardwick <time4swim@gmail.com>
This commit is contained in:
parent
a41047672d
commit
8a38650658
|
@ -626,6 +626,10 @@ ubtu24cis_desktop_required: false
|
||||||
# This will also purge any packages not removed via this playbook
|
# This will also purge any packages not removed via this playbook
|
||||||
ubtu24cis_purge_apt: false
|
ubtu24cis_purge_apt: false
|
||||||
|
|
||||||
|
## Ignore change_when for apt update task
|
||||||
|
# Modifies behavior of 'changed_when' for 'apt update' task in prelim that always changes
|
||||||
|
ignore_apt_update_changed_when: false
|
||||||
|
|
||||||
##
|
##
|
||||||
## Section 1 Control Variables
|
## Section 1 Control Variables
|
||||||
##
|
##
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
tags: always
|
tags: always
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
changed_when: not ignore_apt_update_changed_when
|
||||||
|
|
||||||
- name: Include audit specific variables
|
- name: Include audit specific variables
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue