refactor(system_baseline): give the role's internal registers the __ prefix #472

Merged
Defame1297 merged 2 commits from fix/system-baseline-internal-register into main 2026-11-29 09:46:05 +00:00
Owner

What and why

No issue: a naming fix found while working on #456.

roles/AGENTS.md names a role's internal register and set_fact results __<role>_. Two in system_baseline's tasks did not follow it:

  • system_baseline_unattended_check → __system_baseline_unattended_check (tasks/unattended_upgrades.yml)
  • system_baseline_reboot_required_file → __system_baseline_reboot_required_file (tasks/reboot.yml)

The documented output system_baseline_reboot_required keeps its name. Nothing outside these two tasks used the old names. A trivial fragment records it.

Verified

  • grep over the repository finds no other use of the old names, and every other register and set_fact in the role's tasks already has the prefix.
  • pre-commit run --all-files passes, and ansible-test sanity passed on push.

Not verified

  • The scenario on a container: this PR's Molecule run checks it.
  • Other roles still have unprefixed registers: 49 across gitea_runner, gitea, ufw, traefik, user_management, fail2ban, network_interfaces and docker. This PR does not touch them.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why No issue: a naming fix found while working on #456. `roles/AGENTS.md` names a role's internal `register` and `set_fact` results `__<role>_`. Two in `system_baseline`'s tasks did not follow it: - `system_baseline_unattended_check` → `__system_baseline_unattended_check` (`tasks/unattended_upgrades.yml`) - `system_baseline_reboot_required_file` → `__system_baseline_reboot_required_file` (`tasks/reboot.yml`) The documented output `system_baseline_reboot_required` keeps its name. Nothing outside these two tasks used the old names. A `trivial` fragment records it. ## Verified - `grep` over the repository finds no other use of the old names, and every other register and `set_fact` in the role's tasks already has the prefix. - `pre-commit run --all-files` passes, and `ansible-test sanity` passed on push. ## Not verified - The scenario on a container: this PR's Molecule run checks it. - Other roles still have unprefixed registers: 49 across `gitea_runner`, `gitea`, `ufw`, `traefik`, `user_management`, `fail2ban`, `network_interfaces` and `docker`. This PR does not touch them. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added 1 commit 2026-11-28 23:32:04 +00:00
refactor(system_baseline): give the role's internal registers the __ prefix
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 4m15s
Molecule / molecule (pull_request) Successful in 13m48s
4201300291
The unattended-upgrades check and the reboot-required stat registered results under
names that read as role inputs. Internal register and set_fact results are
__system_baseline_; the documented system_baseline_reboot_required output keeps its name.

Assisted-by: Claude Code
Defame1297 added 1 commit 2026-11-29 09:40:22 +00:00
Merge branch 'main' into fix/system-baseline-internal-register
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m45s
Molecule / molecule (pull_request) Successful in 5m3s
6070179126
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-29 09:40:30 +00:00
Defame1297 merged commit edf31df045 into main 2026-11-29 09:46:05 +00:00
Defame1297 deleted branch fix/system-baseline-internal-register 2026-11-29 09:46:07 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#472