Files
computer-playbook/roles/user-root
kevinveenbirkenbachandClaude Opus 4.7 2a023ca6a1 chore(lint): autoformat strict-failure semantics + claude.sh rename
* scripts/lint/autoformat.sh:
  - rename run_sort_claude_settings worker to run_claude (matches the
    renamed scripts/lint/claude.sh).
  - drop the EXIT trap that wiped status_dir; cleanup happens explicitly
    after `wait` returns, so a parallel worker that interrupts the
    parent never races a vanished status dir.
  - each worker now captures its tool's exit code and writes one of
    OK / SKIP / FAIL. Tolerated `expected violations remain`-style exits
    (markdownlint-cli2 rc≤1, ansible-lint rc≤2) still count as OK; only
    real failures count as FAIL.
  - all workers run to completion regardless of individual tool failures
    (so the user always sees the full picture); after the summary, the
    script exits 1 if any worker reported FAIL.
* scripts/lint/sort_claude_settings.sh -> scripts/lint/claude.sh
  (history preserved via git mv); update test_claude_settings_sorted.py
  fix-hint accordingly.

Plus working-tree drift across roles/, group_vars/, inventories/,
requirements/, and .pre-commit-config.yaml accumulated from the
make-test setup phase regenerating generated artefacts during recent
test runs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 01:30:49 +02:00
..
…

Root User

Description

This role manages the generation and handling of an SSH key for the root user on a target system. It ensures that an SSH key is generated if one does not already exist and outputs the public key, enabling secure SSH access for the root user in automated environments.

Overview

Optimized for secure system administration, this role performs the following tasks:

  • Verifies the existence of a root SSH public key.
  • Generates a new RSA 4096-bit SSH key pair for the root user if one is missing.
  • Displays and outputs the generated public SSH key.
  • Ensures that the key generation and display tasks run only once to maintain idempotency.
  • Facilitates secure remote access using best practices for SSH.

Purpose

The primary purpose of this role is to enhance the security of the system by ensuring that a valid SSH key is available for the root user. By automating the generation and output of the public key, it reduces manual intervention and helps maintain a secure configuration for administrative access.

Features

  • SSH Key Verification: Checks whether a root SSH public key exists.
  • SSH Key Generation: Generates a new RSA 4096-bit SSH key pair for the root user if needed.
  • Public Key Output: Displays and outputs the generated public SSH key.
  • Idempotency: Ensures that key generation and output tasks execute only once.
  • Secure Remote Access: Facilitates secure remote access by providing a verified public key for use with SSH.

Credits

Developed and maintained by Kevin Veen-Birkenbach. Learn more at veen.world. Part of the Infinito.Nexus Project. Licensed under the Infinito.Nexus Community License (Non-Commercial).