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
3 changed files with 9 additions and 4 deletions
Showing only changes of commit 4201300291 - Show all commits

No files matched your search

@@ -0,0 +1,5 @@
---
trivial:
- >-
system_baseline - The registered results of the unattended-upgrades check and the reboot-required
check carry the internal ``__system_baseline_`` prefix.
+2 -2
View File
@@ -9,11 +9,11 @@
- name: Check if reboot is required (Debian)
ansible.builtin.stat:
path: /var/run/reboot-required
register: system_baseline_reboot_required_file
register: __system_baseline_reboot_required_file
- name: Set system_baseline_reboot_required fact
ansible.builtin.set_fact:
system_baseline_reboot_required: "{{ system_baseline_reboot_required_file.stat.exists }}"
system_baseline_reboot_required: "{{ __system_baseline_reboot_required_file.stat.exists }}"
- name: Reboot the server if required
ansible.builtin.reboot:
@@ -60,6 +60,6 @@
- name: Validate unattended-upgrades config
become: true
ansible.builtin.command: unattended-upgrades --dry-run --debug
register: system_baseline_unattended_check
register: __system_baseline_unattended_check
changed_when: false
failed_when: system_baseline_unattended_check.rc != 0
failed_when: __system_baseline_unattended_check.rc != 0