Files
Björn RundenandClaude Opus 5.5 7f6b8ebe07 Basis aus 2nd-brain für LPIC-Prüfungsvorbereitung übernommen
Regeln, Standards, Kontextstruktur und Werkzeuge übernommen; 2nd-brain-
Inhalte (Stacks, Ansible-Inventar, Architektur, Knowledge) entfernt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:56:53 +01:00

29 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#-------------------------------------------------------------------------------
## @file mini_check.yml
## @brief Erreichbarkeit prüfen und Kernfakten anzeigen; -e check_mode=setup sammelt Facts neu
## @author <AUTOR – aus ai/context/responsible.md>
## @owner <VERANTWORTLICH – aus ai/context/responsible.md>
## @version 1.0.0 (07.10.2026)
## @usage ansible-playbook $ANS_PLAYDIR/mini_check.yml [-e hostlist=…] [-e check_mode=setup]
#-------------------------------------------------------------------------------
---
- name: Mini-Check
hosts: "{{ hostlist | default('<STANDARDHOST>') }}"
gather_facts: false
tasks:
- name: Erreichbarkeit prüfen
ansible.builtin.ping:
- name: Facts neu sammeln
ansible.builtin.setup:
when: (check_mode | default('')) == 'setup'
- name: Facts aus Cache/Host laden
ansible.builtin.setup:
gather_subset: [min]
when: ansible_facts['distribution'] is not defined
- name: Kernfakten anzeigen
ansible.builtin.debug:
msg: "{{ inventory_hostname }}: {{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }}, Kernel {{ ansible_facts['kernel'] }}"