feat(system_baseline): add a per-host package blacklist for unattended-upgrades
system_baseline_unattended_upgrade_package_blacklist (list of regular expressions, default empty) is written to a drop-in as Unattended-Upgrade::Package-Blacklist; an empty list removes it. Assisted-by: Claude Code
This commit is contained in:
1 parent
8e512416e9
commit
e4c69dfdd8
10 files changed
+185
No files matched your search
@@ -19,6 +19,21 @@
|
||||
that: "'is invalid' in ansible_failed_result.msg | default('')"
|
||||
quiet: true
|
||||
|
||||
# A quote, a null item and a bare string (not a list) each stop the run: the bare string would otherwise be split into one-character
|
||||
# patterns, and the null item would become an empty pattern that matches every package.
|
||||
- name: A bad package blacklist is refused
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Refuse each bad value
|
||||
ansible.builtin.include_tasks: tasks/refuse_blacklist.yml
|
||||
vars:
|
||||
system_baseline_refused_blacklist: "{{ item }}"
|
||||
loop:
|
||||
- ['bad"name']
|
||||
- [null]
|
||||
- linux-image-.*
|
||||
|
||||
- name: Converge the LXC profile
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
|
||||
Reference in new issue
Block a user