system_baseline_essential_packages and system_baseline_remove_packages replace the whole list, and so does a list inside system_baseline_profile_overrides, so adding one package meant repeating the profile's list and keeping it in step with every release. system_baseline_extra_packages and system_baseline_extra_remove_packages (lists, default empty) append to the resolved lists. The tmux and unattended-upgrades checks read the combined list, so an extra tmux or unattended-upgrades enables the matching task like a profile package. Items must be Debian package names: a null item would have become the package "None", and apt reads a trailing minus (jq-) as a removal. A package that one input installs and another purges stops the run before any change; only overlaps that involve an extra are checked, so a consumer's own overlap between the resolved lists behaves as before. A flat input that is a plain string still counts as a one-item list. With both inputs left at their default the role behaves as before. Closes #399 Assisted-by: Claude Code:claude-sonnet-5-5
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
---
|
|
- name: Validate inputs
|
|
ansible.builtin.import_tasks: validate.yml
|
|
tags: always
|
|
|
|
# Only the main flow honours system_baseline_update: the tasks_from: update entry point is an explicit request to update.
|
|
- name: Update & Upgrade Dist
|
|
ansible.builtin.import_tasks: update.yml
|
|
vars:
|
|
__system_baseline_main_flow: true
|
|
when: system_baseline_update | bool
|
|
tags: update
|
|
|
|
- name: Manage packages
|
|
ansible.builtin.import_tasks: packages.yml
|
|
tags: packages
|
|
|
|
- name: Configure unattended-upgrades
|
|
ansible.builtin.import_tasks: unattended_upgrades.yml
|
|
when: "'unattended-upgrades' in __system_baseline_install_packages"
|
|
tags: unattended-upgrades
|
|
|
|
- name: Set locale
|
|
ansible.builtin.import_tasks: locale.yml
|
|
tags: locale
|
|
|
|
- name: Set timezone
|
|
ansible.builtin.import_tasks: timezone.yml
|
|
tags: timezone
|
|
|
|
- name: Cap the journal size
|
|
ansible.builtin.import_tasks: journald.yml
|
|
tags: journald
|
|
|
|
- name: Bound a hung apt-daily.service
|
|
ansible.builtin.import_tasks: apt_daily_timeout.yml
|
|
when: system_baseline_apt_daily_timeout | length > 0
|
|
tags: apt-daily-timeout
|
|
|
|
- name: Harden sysctl
|
|
ansible.builtin.import_tasks: sysctl.yml
|
|
tags: sysctl
|
|
|
|
- name: Secure temporary filesystems
|
|
ansible.builtin.import_tasks: secure_tmp.yml
|
|
tags: secure_tmp
|
|
|
|
- name: Start tmux on SSH login
|
|
ansible.builtin.import_tasks: tmux.yml
|
|
tags: tmux
|
|
|
|
- name: Reboot if required
|
|
ansible.builtin.import_tasks: reboot.yml
|
|
tags: update
|
|
|
|
- name: Flush handlers early
|
|
ansible.builtin.meta: flush_handlers
|