Copied from the environment repository's role and scrubbed for the Collection, the same way as systemd_hardening and network_interfaces: galaxy namespace mortis, the molecule scenario calls the role by its FQCN and takes its paths from the workflow, the README example uses mortis.kamino.system_baseline, and repository-local references (issue numbers, ADRs, inventory paths, host anecdotes) are dropped. Profiles and defaults are unchanged. The Legacy name guard and the molecule play that tested it are dropped: the guard only protected the in-repo rename, and a new consumer never had the old names. mock_roles in .ansible-lint lists the FQCN. The update and reboot task files are documented as supported entry points (argument_specs and README): a caller that drives its own reboot, such as a drain-aware Kubernetes node patch flow, imports them with tasks_from and reads the system_baseline_reboot_required fact that reboot sets. With system_baseline_reboot_if_required false, reboot only computes the fact. Neither entry point has a required option. A new verify play asserts the fact both ways and that the entry point does not reboot. Not verified locally: the molecule scenario (it runs on the kamino-molecule runner in CI) and ansible-test sanity. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
---
|
|
- name: Validate inputs
|
|
ansible.builtin.import_tasks: validate.yml
|
|
tags: always
|
|
|
|
- name: Update & Upgrade Dist
|
|
ansible.builtin.import_tasks: update.yml
|
|
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: Reboot if required
|
|
ansible.builtin.import_tasks: reboot.yml
|
|
tags: update
|
|
|
|
- name: Flush handlers early
|
|
ansible.builtin.meta: flush_handlers
|