Add system_baseline_reboot_throttle and system_baseline_reboot_post_delay, passed to the throttle and post_reboot_delay of the reboot task, read by the main flow and by tasks_from: reboot, both defaulting to 0 (today's behaviour) and validated in both. Add system_baseline_apt_daily_timeout: when set, write a TimeoutStartSec drop-in for apt-daily.service and reload systemd. Empty by default, which leaves the host alone. Closes #336 Closes #337 Assisted-by: Claude Code
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_essential_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
|