Update ansible/update.yml
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
when:
|
when:
|
||||||
- host_is_online | default(false)
|
- host_is_online | default(false)
|
||||||
- ansible_os_family | default('') == 'Debian'
|
- ansible_os_family | default('') == 'Debian'
|
||||||
- not (skip_apt | default(false))
|
- not (skip | default(false))
|
||||||
ignore_unreachable: true
|
ignore_unreachable: true
|
||||||
block:
|
block:
|
||||||
- name: Aktualizacja pamięci podręcznej i podniesienie pakietów
|
- name: Aktualizacja pamięci podręcznej i podniesienie pakietów
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
when:
|
when:
|
||||||
- host_is_online | default(false)
|
- host_is_online | default(false)
|
||||||
- ansible_os_family | default('') == 'Alpine'
|
- ansible_os_family | default('') == 'Alpine'
|
||||||
- not (skip_apt | default(false))
|
- not (skip | default(false))
|
||||||
ignore_unreachable: true
|
ignore_unreachable: true
|
||||||
block:
|
block:
|
||||||
- name: Aktualizacja pamięci podręcznej i pakietów (apk)
|
- name: Aktualizacja pamięci podręcznej i pakietów (apk)
|
||||||
@@ -106,5 +106,5 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg:
|
msg:
|
||||||
- "Host: {{ inventory_hostname }} ({{ ansible_distribution | default('Brak połączenia') }})"
|
- "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' }}"
|
- "Status restartu: {{ '⚠️ WYMAGANY RESTART!' if (reboot_needed | default(false)) else '✅ Brak potrzeby restartu' }}"
|
||||||
Reference in New Issue
Block a user