cleanup and descritive README

This commit is contained in:
Tobias_Speer 2025-07-23 11:27:10 +02:00
parent ed40c478e9
commit 44e8e027e4
24 changed files with 1605 additions and 2 deletions

View file

@ -0,0 +1,17 @@
---
- name: Reboot host
block:
- name: Rebooting
ansible.builtin.reboot:
reboot_timeout: 1200
test_command: uptime
register: reboot_result
- name: Wait for host to come back online
ansible.builtin.wait_for_connection:
delay: 10
timeout: 1800
when: reboot_result is changed
- name: Restart docker to kill Zombies
ansible.builtin.systemd_service:
name: docker
state: restarted

View file

@ -0,0 +1,11 @@
---
- name: Upgrade hosts
notify: "Reboot host"
block:
- name: Update cache
ansible.builtin.apt:
update_cache: true
- name: Upgrade OS
ansible.builtin.apt:
upgrade: yes