fix(system_baseline): declare dependencies and correct the review findings
- galaxy.yml declares community.general and ansible.posix: system_baseline is the first role that calls modules outside ansible.builtin, and a consumer that installs only this Collection failed to parse the play. - The README override example set Automatic-Reboot to false, which every profile already defaults to; it now shows the opt-in. - Comment and description wording. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
5abd1abe73
commit
9c705a7f93
6 files changed
+16
-6
No files matched your search
@@ -40,13 +40,13 @@ templating error instead of the role's own message.
|
||||
| `system_baseline_locale` | `en_US.UTF-8` | no | Locale |
|
||||
| `system_baseline_reboot_if_required` | `true` | no | Reboot when `/var/run/reboot-required` exists |
|
||||
|
||||
A flat `system_baseline_*` input replaces that value entirely. To change one key of a profile dict, use `system_baseline_profile_overrides`, for example to keep unattended-upgrades from rebooting a group:
|
||||
A flat `system_baseline_*` input replaces that value entirely. To change one key of a profile dict, use `system_baseline_profile_overrides`, for example to let unattended-upgrades reboot a group on its own:
|
||||
|
||||
```yaml
|
||||
system_baseline_profile_overrides:
|
||||
ubuntu_vm:
|
||||
unattended_upgrade_settings:
|
||||
"Unattended-Upgrade::Automatic-Reboot": false
|
||||
"Unattended-Upgrade::Automatic-Reboot": true
|
||||
```
|
||||
|
||||
## Entry points
|
||||
@@ -95,7 +95,7 @@ Besides `main`, two task files are a supported interface, for a caller that driv
|
||||
## Notes
|
||||
|
||||
- The `pve` profile has no `ufw`; the `ubuntu_*` profiles install it and `fail2ban`.
|
||||
- The `ubuntu_vm` profile does not let unattended-upgrades reboot on its own (`Automatic-Reboot: false`); a host opts in through `system_baseline_profile_overrides`.
|
||||
- No profile lets unattended-upgrades reboot on its own (`Automatic-Reboot: false`); a host opts in through `system_baseline_profile_overrides`.
|
||||
- Set `system_baseline_reboot_if_required: false` for hosts whose reboot takes other machines down (hypervisors) or needs a drain first (cluster nodes).
|
||||
- Molecule skips `sysctl`, `secure_tmp`, `update` and `timezone` (no privileged container); see `molecule/default/molecule.yml`.
|
||||
- Policy lives in defaults, not `vars/`, so group_vars and host_vars can override it.
|
||||
|
||||
Reference in new issue
Block a user