system_baseline_update (default true) lets the main flow skip the package update for hosts patched by a separate, operator-run flow. The update entry point does not read it: calling it is the request to update. The new profile key unattended_upgrade_origins is rendered into /etc/apt/apt.conf.d/90unattended-upgrades-origins, which #clears both origin lists before setting the pinned patterns, because apt appends list entries across files and a plain drop-in could only widen them. The pve profile pins Debian's point-release and security origins, never the Proxmox repository; the ubuntu profiles pin nothing and are unchanged. Refs defame1297/ansible-homelab-mono#349 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
51 lines
1.3 KiB
YAML
51 lines
1.3 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
|
|
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: 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
|