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>
This commit is contained in:
commit
7f6b8ebe07
70 files changed
+2816
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
## @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'] }}"
|
||||
Reference in new issue
Block a user