Update ansible/update.yml

This commit is contained in:
2026-08-11 22:32:48 +02:00
parent 98962e288a
commit f0316c606a

View File

@@ -48,7 +48,7 @@
when:
- host_is_online | default(false)
- ansible_os_family | default('') == 'Debian'
- not (skip_apt | default(false))
- not (skip | default(false))
ignore_unreachable: true
block:
- name: Aktualizacja pamięci podręcznej i podniesienie pakietów
@@ -74,7 +74,7 @@
when:
- host_is_online | default(false)
- ansible_os_family | default('') == 'Alpine'
- not (skip_apt | default(false))
- not (skip | default(false))
ignore_unreachable: true
block:
- name: Aktualizacja pamięci podręcznej i pakietów (apk)
@@ -106,5 +106,5 @@
ansible.builtin.debug:
msg:
- "Host: {{ inventory_hostname }} ({{ ansible_distribution | default('Brak połączenia') }})"
- "Status: {{ '🔴 NIEOSIĄGALNY / WYŁĄCZONY' if not (host_is_online | default(false)) else ('⏭️ POMINIĘTO (skip_apt)' if (skip_apt | default(false)) else '✅ ZAKOŃCZONO SUCCESS') }}"
- "Status: {{ '🔴 NIEOSIĄGALNY / WYŁĄCZONY' if not (host_is_online | default(false)) else ('⏭️ POMINIĘTO (skip)' if (skip | default(false)) else '✅ ZAKOŃCZONO SUCCESS') }}"
- "Status restartu: {{ '⚠️ WYMAGANY RESTART!' if (reboot_needed | default(false)) else '✅ Brak potrzeby restartu' }}"