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>
29 lines
1.2 KiB
YAML
29 lines
1.2 KiB
YAML
#-------------------------------------------------------------------------------
|
||
## @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'] }}"
|